SA-MP Forums Archive
Help please - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help please (/showthread.php?tid=376947)



Help please - Sp3cter - 12.09.2012

How i can make dialog for question like : Write what you are [Male] [Female] so in dialog i need to choose Male or Female !



I'm using SaveG gamemode if that help somehow ....


Re: Help please - Sp3cter - 13.09.2012

Bump


Re: Help please - manishmulchandani11 - 13.09.2012

<a href="http://www.game-state.eu/66.85.141.76:7777/"><img src="http://www.game-state.eu/66.85.141.76:7777/8000FF/FF0000/560x95.png" alt="www.Game-State.eu" style="border-style: none;" /></a>


Re: Help please - manishmulchandani11 - 13.09.2012

[IMG]<a href="http://www.game-state.eu/66.85.141.76:7777/"><img src="http://www.game-state.eu/66.85.141.76:7777/8000FF/FF0000/560x95.png" alt="www.Game-State.eu" style="border-style: none;" /></a>[/IMG]


Re: Help please - C00K13M0N$73R - 13.09.2012

pawn Код:
#include <a_samp>

new Gender[MAX_PLAYERS]; //1 - male | 2 - female

public OnPlayerConnect(playerid)
{
    ShowPlayerDialog(playerid,1,DIALOG_STYLE_LIST,"Gender","Male/nFemale","Select","");
    return 1;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == 1)
    {
        if(response)
        {
            if(listitem == 0)
            {
                Gender[playerid] = 1;
                SendClientMessage(playerid,-1,"You are a male.");
            }
            if(listitem == 1)
            {
                Gender[playerid] = 2;
                SendClientMessage(playerid,-1,"You are a female.");
            }

        }
        return 1;
    }

    return 0;
}