SA-MP Forums Archive
Problem at login - 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: Problem at login (/showthread.php?tid=453745)



Problem at login - Kapone21 - 26.07.2013

My login work OK but sometimes don't work and put the player in Class selection and only when press SPAWN login why? ]
how can i disable Class selection ?..


Re: Problem at login - JimmyCh - 26.07.2013

pawn Код:
TogglePlayerSpectating(playerid, 1);
This will remove the spawn button etc..


Respuesta: Problem at login - Xabi - 26.07.2013

You can return 0 when player request to spawn (OnPlayersRequestSpawn) so the class selection menu will be disabled. Now, when you want to spawn the player, just use SpawnPlayer(playerid) function.