[Question] Ban
#4

I remember people posting about this. The best thing to do with that is to put it into a timer for something like 100 ms. Here, use mine.

Reason:

Quote:

As of SA-MP 0.3x, any action taken directly before Kick() (such as sending a message with SendClientMessage) will not reach the player. A timer must be used to delay the kick.

pawn Код:
SetTimerEx("KickPlayer",500,false,"i",giveplayerid);// Kicks player in 500ms

forward KickPlayer(playerid);
public KickPlayer(playerid)
{
    Kick(playerid);
    return 1;
}
Reply


Messages In This Thread
[Question] Ban - by javad - 17.08.2015, 10:53
Re: [Question] Ban - by ZToPMaN - 17.08.2015, 10:59
Re: [Question] Ban - by javad - 17.08.2015, 11:06
Re: [Question] Ban - by Dokins - 17.08.2015, 11:24
Re: [Question] Ban - by javad - 17.08.2015, 11:37
Re: [Question] Ban - by Dokins - 17.08.2015, 11:38
Re: [Question] Ban - by javad - 17.08.2015, 11:42
Re: [Question] Ban - by Dokins - 17.08.2015, 11:43
Re: [Question] Ban - by javad - 17.08.2015, 11:45
Re: [Question] Ban - by Dokins - 17.08.2015, 11:49

Forum Jump:


Users browsing this thread: 9 Guest(s)