Quote:
Originally Posted by [ISS]jumbo
when u want the dialog show? in on player connect?
pawn Код:
ShowPlayerDialog (playerid, 100,DIALOG_STYLE_MSGBOX, "Rules", "1.Cheating and hacking - Permban\n2.Write on the forum if you want help!\nhttp://freeroam-samp.ucoz.com/forum\n3.Race on LS only\n4.Respect The Administrators and the moderators!\n5.Report asap if you see glitch/bug/cheaters/hackers!", "Agree", "Deny");
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if(dialogid == 100) { if(response) { SendClientMessageToAll(COLOR_YELLOW,"thx for accept rules"); } else if(response == 0) { SendClientMessageToAll(COLOR_YELLOW,"you have not accept the rules kick"); Kick(playerid); } } return 1; }
|
Could somebody please tell me where exactly do I place the 2nd part? I know its in my gamemode but where exactly?