29.06.2014, 05:40
pawn Код:
#define DIALOG_CLASSE 4598
public OnPlayerConnect(playerid)
{
ShowPlayerDialog(playerid, DIALOG_CLASSE, DIALOG_STYLE_LIST, "Escolha sua classe", "Gnomo\nElfo\nMago", "Selecionar", "Sair");
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == DIALOG_CLASSE)
{
if(!response) return Kick(playerid);
if (listitem == 0)
{
//funзхes Gnomo
}
if (listitem == 1)
{
//funзхes Elfo
}
if (listitem == 2)
{
//funзхes Mago
}
}
return 0;
}