How i can make dialog for question like : Write what you are [Male] [Female] so in dialog i need to choose Male or Female !
[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]
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;
}