SA-MP Forums Archive
Spawn Error - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Spawn Error (/showthread.php?tid=590872)



Spawn Error - Jigsaw123 - 04.10.2015

Hey guys, I'm currently developing a server but have a slight problem.

Whenever the player has finished the registration process, I put 'SpawnPlayer(playerid);' in the code, However it still asks you to press the 'SPAWN' button. Also, when I press the 'SPAWN' button i spawn in Las Venturas with CJ's skin, on the elevator stairs? Help?

If you need any piece of the code, please ask.
Kind Regards,

Jigsaw


Re: Spawn Error - d1git - 04.10.2015

Make sure you've added this to your script;
PHP код:
SetSpawnInfo(playeridteamskinFloat:xFloat:yFloat:zFloat:Angleweapon1weapon1_ammoweapon2weapon2_ammoweapon3weapon3_ammo); 
To remove the "Spawn" buttons and such just make the player enter spectate mode;
PHP код:
TogglePlayerSpectating(playeridtrue); 
Want to spawn the player? Use
PHP код:
SpawnPlayer(playerid);
TogglePlayerSpectating(playeridfalse);