25.05.2012, 21:12
(
Последний раз редактировалось x96664; 26.05.2012 в 15:01.
)
Can somebody tell me what I must to do on OnDialogResponse:
-to kick automatically players if they click on "decline" on server rules dialog and show message to all players in the server that the player has declined the rules and has been automatically kicked?
-also to show to the player SendClientMessage(playerid,COLOR,"You have accepted the rules, Welcome to the server") if he click on "accept".
I made this to the moment, but I don't know what I must to do about previous things which I told about:
-to kick automatically players if they click on "decline" on server rules dialog and show message to all players in the server that the player has declined the rules and has been automatically kicked?
-also to show to the player SendClientMessage(playerid,COLOR,"You have accepted the rules, Welcome to the server") if he click on "accept".
I made this to the moment, but I don't know what I must to do about previous things which I told about:
pawn Код:
#define Dialog_Rules 1 //Rules dialog
public OnPlayerConnect(playerid)
{
ShowPlayerDialog(playerid,Dialog_Rules,0,"Server Rules:","1.Accept the rules if you want to play in the server!","Accept", "Decline");
return 1;
}