SA-MP Forums Archive
How to not let a player spawn until logged in - 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: How to not let a player spawn until logged in (/showthread.php?tid=93115)



How to not let a player spawn until logged in - dougbrowne - 23.08.2009

How can I make it so it doesn't let a player spawn until he logs in?


Re: How to not let a player spawn until logged in - ronyx69 - 23.08.2009

if he is not logged in you need to return 0 in OnPlayerRequestSpawn.


Re: How to not let a player spawn until logged in - James_Alex - 23.08.2009

i remeber that i've already asked something like that
search next time please before posting


Re: How to not let a player spawn until logged in - SpiderPork - 23.08.2009

pawn Код:
public OnPlayerRequestSpawn(playerid, classid)
{
   if(YourLoginVariable == 0)
   {
     SendClientMessage(playerid, COLOR, "Error: You have to login before spawn!");
     return 0;
   }
   return 1;
}
Something like this should do it .


Re: How to not let a player spawn until logged in - Calgon - 24.08.2009

You must create a login system, and a variable to determine that the user is either logged in or out.

Review SpiderPork's code.