21.07.2013, 14:51
This is a samp glitch, as the player is kicked before he gets the message.
I've create a KickEx function that works perfect, it just wait less than a second to kick the player, giving his client time to receive the message.
Now just use KickEx(playerid) instead of Kick(playerid)
I've create a KickEx function that works perfect, it just wait less than a second to kick the player, giving his client time to receive the message.
pawn Код:
// Top of script
forward KickPlayer(playerid);
public KickPlayer(playerid);
{
Kick(playerid);
return 1;
}
// Now at the end of the script
stock KickEx(playerid)
{
SetTimerEx("KickPlayer",350,false,"d",playerid);
}