15.01.2015, 07:56
For the first one, i don't think you need to return 1 twice.
And i guess you meant the second to be this:
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == drules)
{
if(!response) return Kick(playerid);
}
}
return 1;
}
pawn Код:
CMD:rules(playerid,params[])
{
ShowPlayerDialog(playerid, 2345, DIALOG_STYLE_MSGBOX, "Rules of the server", "No racism\nNo car parking/ramming on players\nNo hacking\nInsulting is not allowed\nBe nice\nRespect admins\nNEVER abuse bugs if you found one report on forums\nFor all the rules visit our forums. /site", "Agree", "I don't agree");
return 1;
}