[DUV] Dialog
#4

Tenta isso:

pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
 if(dialogid == DIALOG_1)
 {
 if(response)
 {
 if(listitem == 0)
 {
 GivePlayerWeapon(playerid, 24, 999);
 GivePlayerWeapon(playerid, 16, 1);
 GivePlayerWeapon(playerid, 34, 999);
 GivePlayerWeapon(playerid, 31, 999);
 GivePlayerWeapon(playerid, 32, 999);
 }
 if(listitem == 1)
 {
 SetPlayerHealth(playerid, 100);
 }
 if(listitem == 2)
 {
 SetPlayerArmour(playerid, 100);
 }
 }
 return 1;
}

 if(dialogid == DIALOG_2)
 {
 if(response)
 {
 if(listitem == 0) {
 ShowPlayerDialog(playerid,2,DIALOG_STYLE_LIST,"Comandos","/pg Abre portao da Groove \n/pa Abre portao dos Aztecas \n/pc Abre portao do Comando Vermelho \n/pv Abre portao dos Vagos \n/pm Abre portao da PM","Pronto","Cancelar");
 }
 if(listitem == 1) {
 ShowPlayerDialog(playerid,2,DIALOG_STYLE_LIST,"Territorio","Em desenvolvimento","Pronto","Cancelar");
 }
 if(listitem ==2) {
 ShowPlayerDialog(playerid,2,DIALOG_STYLE_LIST,"Dinheiro","Em desenvolvimento","Pronto","Cancelar");
 }
 }
 return 1;
}
 return 0;
}
Reply


Messages In This Thread
[DUV] Dialog - by Gil_Henriquee - 24.05.2010, 01:44
Re: [DUV] Dialog - by SuB_ZeRo0_ - 24.05.2010, 01:48
Re: [DUV] Dialog - by Gil_Henriquee - 24.05.2010, 01:57
Re: [DUV] Dialog - by SuB_ZeRo0_ - 24.05.2010, 02:09
Re: [DUV] Dialog - by Gil_Henriquee - 24.05.2010, 02:17
Re: [DUV] Dialog - by SuB_ZeRo0_ - 24.05.2010, 02:20

Forum Jump:


Users browsing this thread: 2 Guest(s)