Help please
#5

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;
}
Reply


Messages In This Thread
Help please - by Sp3cter - 12.09.2012, 11:27
Re: Help please - by Sp3cter - 13.09.2012, 05:32
Re: Help please - by manishmulchandani11 - 13.09.2012, 05:40
Re: Help please - by manishmulchandani11 - 13.09.2012, 05:43
Re: Help please - by C00K13M0N$73R - 13.09.2012, 06:01

Forum Jump:


Users browsing this thread: 1 Guest(s)