22.01.2013, 11:39
Save the variable before kick...
Also, reason 2 at OnPlayerDisconnect, means kick or banned.
pawn Код:
CMD:kicktest(playerid) // Only an exemple
{
Kicked[playerid] = true;
Kick(playerid);
return 1;
}
pawn Код:
public OnPlayerDisconnect(playerid, reason)
{
if(reason == 2) SendClientMessageToAll(-1,"A bitch got kicked or banned off from the server.");
return 1;
}