Accepted Rules Detection
#2

pawn Код:
public OnPlayerConnect(playerid) {
    return ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, "Title : Rules", "List : Rules", "Button 1", "Button 2");
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    switch(dialogid) {
        case 1: {
            if( !response ) {
                SendClientMessage(playerid, -1, "You did not accept the rules.");
            }
            else {
                SendClientMessage(playerid, -1, "You accepted the rules.");
            }
        }
    }
    return true;
}
Simple, is not that hard just create a dialog, and OnDialogResponse will do its job.
Reply


Messages In This Thread
Accepted Rules Detection - by [WA]iRonan - 21.12.2013, 19:42
Re: Accepted Rules Detection - by Patrick - 21.12.2013, 19:54
Re: Accepted Rules Detection - by [WA]iRonan - 21.12.2013, 20:46

Forum Jump:


Users browsing this thread: 1 Guest(s)