25.05.2012, 21:46
(
Последний раз редактировалось Kindred; 25.05.2012 в 22:30.
)
Untested, should work fine:
Change -1 to the color you want ((i.g. COLOR_WHITE (if defined) or 0xFFFFFFFF)).
EDIT: If you need this to be explained, please, feel free to ask. I'd rather not do it if it is not needed.
EDIT: @Ken97, thanks. I saw that at first, but when I began scripting this, I completely forgot he wanted it for everyone. Edited my code as-well.
pawn Код:
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);
return 1;
}
SendClientMessageToAll(-1,"You have accepted the rules, Welcome to the server");
}
}
return 1;
}
EDIT: If you need this to be explained, please, feel free to ask. I'd rather not do it if it is not needed.
EDIT: @Ken97, thanks. I saw that at first, but when I began scripting this, I completely forgot he wanted it for everyone. Edited my code as-well.