SA-MP Forums Archive
login - 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 (/showthread.php?tid=84620)



login - sggassasin - 02.07.2009

im looking for a script that if a player dose not log in then he gets kicked from the sever a little help plz



thx for ur time


(i have already searched)


Re: login - Grim_ - 02.07.2009

pawn Код:
public OnPlayerSpawn(playerid)
{
  if(!Logged[playerid]) //Your variable to see if the player is logged.
  {
   Kick(playerid);
  }
}



Re: login - Ignas1337 - 02.07.2009

or you can prevent them from spawning and send them mmessage to login


Re: login - sggassasin - 02.07.2009

how i find my veribale


Re: login - Grim_ - 02.07.2009

pawn Код:
//top of script
new Logged[MAX_PLAYERS];

//in your login command
Logged[playerid] = 1;

//OnPlayerSpawn
if(Logged[playeird] == 0) { Kick(playerid); }



Re: login - sggassasin - 02.07.2009

k thx


Re: login - sggassasin - 02.07.2009

gah im useing siefs admin script witch comes with a register sytem a little help


Re: login - Grim_ - 02.07.2009

Add in the filterscript
pawn Код:
public OnPlayerSpawn(playerid)
{
  if(AccountInfo[playerid][Logged] == 0)
  {
   Kick(playerid);
  }
}



Re: login - sggassasin - 02.07.2009

i get an error saying carnt find md5 but i have it so like it wont creat the amx file