SA-MP Forums Archive
Spawn button. - 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 button. (/showthread.php?tid=351744)



Spawn button. - Nicholas. - 17.06.2012

How can I make the spawn button not clickable until the login or register dialogs are disappeared?


Re: Spawn button. - Kitten - 17.06.2012

Create a variable and set it to one once they login,

pawn Код:
public OnPlayerRequestSpawn(playerid)
{
    if(VariableLogged[playerid] == 0) return // Return the login dialog.
    return 1;
}