21.05.2013, 18:31
Try this.
P.S Not tested and you can change that timer time to like 2 seconds if this isn't working.
Код:
if (strcmp("/k", cmdtext, true, 2) == 0)
{
SendClientMessage(playerid, COLOR_RED, "kicked");
SetTimer("kicktimer", 1000, false); // Set a timer of 1000 miliseconds (1 second)
return 1;
}
forward kicktimer();
public kicktimer()
{
Kick(playerid);
}

