pawn Код:
CMD:kick(playerid, params[])
{
new reason[40], target;
if(sscanf(params, "us[40]", target, reason)) return SCM(playerid, -1, "USAGE: /kick player reason.");
if(!IsPlayerConnected(target)) return SCM(playerid, -1, "Player not connected.");
else
{
new str[128];
format(str, 128, "You have been kicked for the reason: %s", reason);
SendClientMessage(target, -1, str);
SetTimerEx("kickdelay", 1000, 0, "d", target);
return 1;
}
}
forward public kickdelay(target);
public kickdelay(target)
{
Kick(target);
return 1;
}