Login script help. - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Login script help. (
/showthread.php?tid=171968)
Login script help. -
Jmarr - 28.08.2010
I'm trying to make my script so that before the player is allowed to select their class they either have to login or register, if they login in they skip the skin selection and if they register they are sent to the skin selection.
Thanks.
Re: Login script help. -
Mike Garber - 28.08.2010
pawn Код:
public OnPlayerRequestSpawn(playerid)
{
// PREVENT SPAWN WITHOUT LOGIN
if(YourIfLoggedInCheck){
// Do something
return 0;
}
return 1;
}