Originally Posted by cesar_******
OK ASI VE
pawn Код:
ShowPlayerDialog(playerid,100,DIALOG_STYLE_LIST,"armas","LENTAS \n RAPIDAS","aceptar", "cancelar");
//esto lo kolokaras en un comando o en OnPlayerSpawn o en OnPlayerConnect
pawn Код:
// luego aka colocas esto
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { switch(100) { case 1: { if(!response) { SendClientMessage(playerid, 0xFF0000FF, "as cancelado."); return 1; } switch(listitem) { case 0: //armas lentas { GivePlayerWeapon(playerid,24,24); GivePlayerWeapon(playerid,29,24); GivePlayerWeapon(playerid,31,24); GivePlayerWeapon(playerid,34,24); } case 1: //armas rapidas { GivePlayerWeapon(playerid,30,24); GivePlayerWeapon(playerid,22,24); GivePlayerWeapon(playerid,26,24); GivePlayerWeapon(playerid,28,24); } } }
|