Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define DIALOG_WEAPONS 1
- public OnDialogResponse(playerid, dialogid, resposne, listitem, inputtext[])
- {
- switch(dialogid)
- {
- case DIALOG_WEAPONS:
- {
- if(response)
- {
- case 0:
- {
- GivePlayerWeapon(playerid, 24, 9999);
- SendClientMessage(playerid, COLOR_WHITE, "");
- }
- case 1:
- {
- GivePlayerWeapon(playerid, 29, 9999);
- SendClientMessage(playerid, COLOR_WHITE, "");
- }
- }
- }
- }
- return 1;
- }
- COMMAND:weapons(playerid, params[])
- {
- ShowPlayerDialog(playerid, DIALOG_WEAPONS, DIALOG_STYLE_LIST, "Weapon Menu", "Desert Eagle\nMP5", "Ok", "Close");
Advertisement
Add Comment
Please, Sign In to add comment