SpawnPlayer - 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: SpawnPlayer (
/showthread.php?tid=472887)
SpawnPlayer -
Beckett - 31.10.2013
------
Re: SpawnPlayer -
Beckett - 31.10.2013
------
Re: SpawnPlayer -
iZN - 31.10.2013
Did you put the code related to register and login at OnPlayerRequestSpawn?
pawn Код:
public OnPlayerRequestSpawn(playerid)
{
if(PlayerInfo[playerid][/*var*/] == 1)
{
//.... your code
return false; // it will prevent the player to use Spawn button until they register/login
}
return true;
}
Re: SpawnPlayer -
DanishHaq - 31.10.2013
Under the register and login dialogs, make a timer for 250 milliseconds that will spawn the player.