Player Dialog How to change function of second button?
#4

pawn Код:
ShowPlayerDialog(playerid, dialogid, DIALOG_STYLE_LIST, "Title", "Don't accept rules\nAccept Rules", "Proceed", "Cancel");
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == dialogid)
    {
        if(response)
        {
            if(listitem == 0)
            {
                Kick(playerid);
            }
            if(listitem == 1)
            {
                SendClientMessage(playerid, NAME_COLOR, "Thank you for accepting the rules");
            }
            return 1;
        }
    }
return 1;
}
Reply


Messages In This Thread
Player Dialog How to change function of second button? - by Legit_V20 - 21.01.2011, 10:57
Re: Player Dialog How to change function of second button? - by ExeC - 21.01.2011, 11:01
Re: Player Dialog How to change function of second button? - by Legit_V20 - 21.01.2011, 11:07
Re: Player Dialog How to change function of second button? - by ExeC - 21.01.2011, 11:12
Re: Player Dialog How to change function of second button? - by HyperZ - 21.01.2011, 11:14
Re: Player Dialog How to change function of second button? - by Legit_V20 - 21.01.2011, 11:22

Forum Jump:


Users browsing this thread: 1 Guest(s)