20.04.2013, 05:04
If you meant to kick anyone, use a timer to delay it.
Here's an example:
Not tested but I guess it works.
OT: Seems pretty nice.
Here's an example:
pawn Code:
new LoggedIn[MAX_PLAYERS];
public OnPlayerSpawn(playerid)
{
if(LoggedIn[playerid] != 1)) return SetTimerEx("KICK", 500, false, "d", playerid);
return 1;
}
forward KICK(playerid);
public KICK(playerid)
{
Kick(playerid);
return 1;
}
//Or if you want a function which performs as kick function (with delay)
stock L_Kick(playerid)
{
SetTimerEx("KICK", 500, false, "d", playerid); //Performs a kick after 500ms.
return 1;
}
OT: Seems pretty nice.