OnDialogResponse[HALP] :)
#5

First of all, return false at the end of the callback if it's filterscript, otherwise true.
Why do you make a /showrules command with listitem? Change it to a msgBox and use:
pawn Код:
if(dialogid == rules)
{
    if(response)
    {
        new pname[24];
        new string[128];
        GetPlayerName(playerid,pname,sizeof(pname));
        format(string,sizeof(string),"%s(%d) Has readed the server rules by typing /showrules{FFFFFF}!",pname,playerid);
        SendClientMessageToAll(COLOR_GREEN,string);
        for(new i = 0; i < MAX_PLAYERS; i++)
        {
            TogglePlayerControllable(i, 1);
        }
    }
    else
    {
        new pname[24];
        new string[128];
        GetPlayerName(playerid,pname,sizeof(pname));
        Kick(playerid);
        format(string,sizeof(string),"%s(%d) Has been kicked Reason:Disagreeing with server-rules{FFFFFF}, you can check it by typing /showrules!",pname,playerid);
        SendClientMessageToAll(COLOR_GREEN,string);
        for(new i = 0; i < MAX_PLAYERS; i++)
        {
            TogglePlayerControllable(i, 1);
        }
     }
     return 1;
}
Reply


Messages In This Thread
OnDialogResponse[HALP] :) - by [CG]Milito - 13.12.2012, 17:52
Re: OnDialogResponse[HALP] :) - by Mean - 13.12.2012, 18:16
Re: OnDialogResponse[HALP] :) - by DaRk_RaiN - 13.12.2012, 18:22
Re: OnDialogResponse[HALP] :) - by Patrick - 13.12.2012, 18:24
Re: OnDialogResponse[HALP] :) - by Konstantinos - 13.12.2012, 18:32

Forum Jump:


Users browsing this thread: 1 Guest(s)