28.03.2010, 11:51
under OnPlayerConnect :
// then /n mean a new line.
then Under OnDialogResponse add :
that code will make if the player press Accept he can play , if he pressed Decline he gets kicked feel free to PM me any question
Код:
ShowPlayerDialog(playerid, 9999, DIALOG_STYLE_MSGBOX, "Rules :", "rule\nrule\nrule\nrule\nrule", "Accept", "Decline");
then Under OnDialogResponse add :
Код:
if(dialogid == 9999) { if(response == 0) { SendClientMessage(playerid, 0xAA3333AA, "You MUST Accept Those Rules Or Be Kicked!"); Kick(playerid); new stringsys [256]; new pName4[MAX_PLAYER_NAME]; GetPlayerName(playerid, pName4, MAX_PLAYER_NAME); format(stringsys, sizeof(stringsys), "[SYSTEM] %s Has Been Kicked For Not Accepting Rules!", pName4); SendClientMessageToAll(0xAA3333AA, stringsys); } if(response == 1) { SendClientMessage(playerid, 0xAA3333AA, "Thank You For Accepting Our Rules."); } return 1; }