SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 27/09/2013, 06:49 AM   #1
MBilal
Gangsta
 
MBilal's Avatar
 
Join Date: May 2013
Posts: 811
Reputation: 57
Default Spawn Help

Hi Guyz i need help ,i want player didnt spawn untill map load because when player spawn in Interior it fall ....... i want player didnt spawn untill map load
i hope you Guyz help me Thanks
MBilal is offline   Reply With Quote
Old 27/09/2013, 06:52 AM   #2
Accord
Big Clucker
 
Join Date: Apr 2012
Posts: 82
Reputation: 3
Default Re: Spawn Help

You simply need to freeze the player's body few seconds until the map gets loaded, add a timer of around 5 seconds(depends how big the map is) and eventually unfreeze him. If you have no clue how to do any of this, please send the code and I'll take care of that for you.
Accord is offline   Reply With Quote
Old 27/09/2013, 07:14 AM   #3
MBilal
Gangsta
 
MBilal's Avatar
 
Join Date: May 2013
Posts: 811
Reputation: 57
Default Re: Spawn Help

Code:
forward Spawn(playerid);
public OnPlayerRequestClass(playerid, classid)
{
SetTimerEx("Spawn", 1000, false, "i", playerid);
return 1;
}

public Spawn(playerid)
{
    SpawnPlayer(playerid);
}
i add this it keep spawning me It cant stop
MBilal is offline   Reply With Quote
Old 27/09/2013, 07:18 AM   #4
MAFIAWARS
Huge Clucker
 
Join Date: Aug 2013
Posts: 266
Reputation: -14
Default Re: Spawn Help

That happens to me, When you are doing F5 to Compile, You are not finding errors right? But You can see Errors in Console. "THAT ARE ERRORS" which are not judging the Player Class...

Please Check your Console and make sure to solve the warnings.

Thanks !
MAFIAWARS is offline   Reply With Quote
Old 27/09/2013, 07:20 AM   #5
MBilal
Gangsta
 
MBilal's Avatar
 
Join Date: May 2013
Posts: 811
Reputation: 57
Default Re: Spawn Help

There is no Warning in Console
MBilal is offline   Reply With Quote
Old 27/09/2013, 07:44 AM   #6
Accord
Big Clucker
 
Join Date: Apr 2012
Posts: 82
Reputation: 3
Default Re: Spawn Help

Try this:

PHP Code:
forward Freeze(playerid);
public 
OnPlayerRequestClass(playeridclassid)
{
    
SpawnPlayer(playerid);
    
TogglePlayerControllable(playerid0);
    return 
SetTimerEx("Freeze"5000false"i"playerid);
}

public 
Freeze(playerid) return TogglePlayerControllable(playerid1); 
Accord is offline   Reply With Quote
Old 27/09/2013, 10:13 AM   #7
MBilal
Gangsta
 
MBilal's Avatar
 
Join Date: May 2013
Posts: 811
Reputation: 57
Default Re: Spawn Help

Thanks For help but already Fixed
MBilal is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Spawn Selection textdraw and spawn music DownDuckling Scripting Help 4 14/10/2012 01:42 AM
Spawn 0,0,0 when spawn after dead some seconds Admigo Scripting Help 1 01/06/2012 07:06 PM
[AJUDA] Colocar TextDraw Antes do Spawn e Após Spawn davidjnio Português/Portuguese 9 30/08/2011 06:53 PM
[Help] Object/item ectra spawn on player spawn? No-Half-Measures Help Archive 3 21/01/2010 09:38 AM


All times are GMT. The time now is 04:28 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.