18.09.2011, 13:36
PHP код:
#define DIALOG_SEXSELECTION (0)
ShowPlayerDialog(playerid, DIALOG_SEXSELECTION, DIALOG_STYLE_LIST, "Please Choose Your Gender","Male\nFemale","Select","Cancel");
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
switch(dialogid)
{
case DIALOG_SEXSELECTION:
{
if(response)
switch(listitem)
{
case 0:SetPlayerSkin(playerid, FEMALESKIN);
case 1:SetPlayerSkin(playerid, MALESKIN);
}
}
}
return 1;
}