05.03.2011, 16:29
First Find OnPlayerCommandText Callback
and
rename /mycommand to /rules
than delete that //Do something here
Type in the following:
OK. Till we've made that.Now find public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
add
Easy wasn't it?
and
rename /mycommand to /rules
than delete that //Do something here
Type in the following:
Код:
ShowPlayerDialog(playerid, 10, DIALOG_STYLE_LIST, "Rules", "Never try to cheat\nNever ask admins we choose admins", "OK.", "Leave");
add
Код:
if(dialogid == 10)
{
if(response)
{
SendClientMessage(playerid,0x008000FF, "OK. Glad u will understand rules!");
}
else
{
SendClientMessage(playerid, 0xFF0000FF, "You selected 'Leave', for that don't understandrules, kick!");
Kick(playerid);
}
return 1;
}

