Guest User

Untitled

a guest
Jun 19th, 2012
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.60 KB | None | 0 0
  1. #define DIALOG_WEAPONS 1
  2.  
  3. public OnDialogResponse(playerid, dialogid, resposne, listitem, inputtext[])
  4. {
  5.     switch(dialogid)
  6.     {
  7.         case DIALOG_WEAPONS:
  8.         {
  9.             if(response)
  10.             {
  11.                 case 0:
  12.                 {
  13.                     GivePlayerWeapon(playerid, 24, 9999);
  14.                     SendClientMessage(playerid, COLOR_WHITE, "");
  15.                 }
  16.                 case 1:
  17.                 {
  18.                     GivePlayerWeapon(playerid, 29, 9999);
  19.                     SendClientMessage(playerid, COLOR_WHITE, "");
  20.                 }
  21.             }
  22.         }
  23.     }
  24.     return 1;
  25. }
  26. COMMAND:weapons(playerid, params[])
  27. {
  28.     ShowPlayerDialog(playerid, DIALOG_WEAPONS, DIALOG_STYLE_LIST, "Weapon Menu", "Desert Eagle\nMP5", "Ok", "Close");
Advertisement
Add Comment
Please, Sign In to add comment