Stop spawn if not logged
#1

I tryed this:

pawn Код:
public OnPlayerSpawn(playerid)
{
    if(IsLogged[playerid] == 0)
    {
        SystemMsg(playerid, "You have to login first!");
        return 0;
    }
    else return 1;
}
But OnPlayerSpawn doesn't handle returns.. so.. how can I do.. ?
Thanks
Reply
#2

https://sampwiki.blast.hk/wiki/OnPlayerRequestSpawn
Reply
#3

pawn Код:
public OnPlayerRequestSpawn(playerid) {
  if(IsLogged[playerid] == 0)
  {
    SystemMsg(playerid, "You have to login first!");
    return 0;
  }
}
Reply
#4

Lol, thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)