06.03.2013, 05:07
pawn Код:
//this before the Kick(giveplayerid);, make sure to delete the Kick(giveplayerid)!
new string[128];
format(string,128,"You have been kicked.\nReason: %s",reason);
ShowPlayerDialog(giveplayerid,9999,DIALOG_STYLE_MSGBOX,"Notice",string,"Dismiss","");
SetTimerEx("DelayKick",1200,0,"i",giveplayerid);//delay the kick by 1 second 200
//outside any callback, at the total bottom or your mode for example
forward DelayKick(playerid);
public DelayKick(playerid)
{
Kick(playerid); //kicks the playerid
}
Read the comments I wrote with the code.