02.07.2009, 06:15
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)
thx for ur time
(i have already searched)
public OnPlayerSpawn(playerid)
{
if(!Logged[playerid]) //Your variable to see if the player is logged.
{
Kick(playerid);
}
}
//top of script
new Logged[MAX_PLAYERS];
//in your login command
Logged[playerid] = 1;
//OnPlayerSpawn
if(Logged[playeird] == 0) { Kick(playerid); }
public OnPlayerSpawn(playerid)
{
if(AccountInfo[playerid][Logged] == 0)
{
Kick(playerid);
}
}