How to not let a player spawn until logged in
#1

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

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

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

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 .
Reply
#5

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

Review SpiderPork's code.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)