Kick Dialog for the Kicked Player?
#8

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
}
Updated with Rajat_Pawar's suggestion.
Read the comments I wrote with the code.
Reply


Messages In This Thread
Kick Dialog for the Kicked Player? - by Youtube12 - 05.03.2013, 19:50
Re: Kick Dialog for the Kicked Player? - by Jstylezzz - 05.03.2013, 19:54
AW: Kick Dialog for the Kicked Player? - by Youtube12 - 05.03.2013, 20:08
Re: Kick Dialog for the Kicked Player? - by InfiniTy. - 05.03.2013, 20:13
AW: Kick Dialog for the Kicked Player? - by Youtube12 - 05.03.2013, 20:33
Re: Kick Dialog for the Kicked Player? - by EliteApple - 06.03.2013, 00:48
Re: Kick Dialog for the Kicked Player? - by RajatPawar - 06.03.2013, 02:21
Re: Kick Dialog for the Kicked Player? - by Jstylezzz - 06.03.2013, 05:07

Forum Jump:


Users browsing this thread: 2 Guest(s)