22.12.2010, 19:19
Код:
#define DIALOG_WEPS 1
Код:
if(!strcmp(cmdtext, "/Weps", true) =0 { ShowPlayerDialog(playerid,DIALOG_WEPS, DIALOG_STYLE_LIST, "Weps", "RW Weapon,\nWW Weapon", "Ok", "Cancel"); return 1; }
after last step
Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { switch(dialogid) { case DIALOG_WEPS: { if(response) { switch(listitem) { case 0: { GivePlayerWeapon(playerid, 28, 0x7F800000); GivePlayerWeapon(playerid, 26, 0x7F800000); } case 1: { GivePlayerWeapon(playerid, 24, 0x7F800000); GivePlayerWeapon(playerid, 27, 0x7F800000); GivePlayerWeapon(playerid, 34, 0x7F800000); } } } } } return 1; } public OnPlayerClickPlayer(playerid, clickedplayerid, source) { return 1; }
http://pastebin.com/RjtDbcda