SA-MP Forums Archive
How to: - 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: (/showthread.php?tid=141084)



How to: - laser50 - 11.04.2010

Make a player ONLY able to play if hes logged in??
like, their is no way to click spawn and spawn, that you MUST be logged in untill you can spawn.


Re: How to: - Torran - 11.04.2010

Quote:
Originally Posted by laser50
Make a player ONLY able to play if hes logged in??
like, their is no way to click spawn and spawn, that you MUST be logged in untill you can spawn.
pawn Код:
public OnPlayerRequestSpawn(playerid)
{
  if(IsLogged[playerid] == 1) {
    return 1;
  }
  else {
    return 0;
  }
  return 1;
}