22.02.2015, 14:15
Hola,
Код:
#define DIALOGO_CLASE public OnPlayerSpawn(playerid) { ShowPlayerDialog(playerid, DIALOGO_CLASE, DIALOG_STYLE_LIST, "Escoge tu clase", "Sniper\nAsalto\nOtra clase", "OK", ""); return 1; } public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if(dialogid == DIALOGO_CLASE) { switch(listitem) { case 0: { // selecciуn sniper } case 1: { // selecciуn asalto } case 2: { // selecciуn "otra clase" } } } return 1; }