25.05.2012, 22:18
What he said, is if he declines, it should send the message to all, should have SendClientMessageToAll added
PHP код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
switch(dialogid)
{
case Dialog_Rules:
{
if(!response)
{
new string[128], name[40];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "%s has been kicked for declining the server rules!", name);
SendClientMessageToAll(0xFF0000FF, string); // Added
return 1;
}
SendClientMessage(playerid,-1,"You have accepted the rules, Welcome to the server");
}
}
return 1;
}