twitchplays

Untitled

Aug 15th, 2014
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.02 KB | None | 0 0
  1. #include <a_samp>
  2.  
  3. #if defined FILTERSCRIPT
  4. public OnPlayerCommandText(playerid, cmdtext[])
  5. {
  6. if(strcmp(cmdtext,"/w",true)==0)
  7. {
  8. ShowPlayerDialog(playerid,1,DIALOG_STYLE_LIST,"Weapons","Parachute\nColt\nDeagle\nShotgun\nCombat Shotgun\nMP5\nAK47\nM4\nSniper Rifle","Give","Exit");
  9. return 1;
  10. }
  11. return 0;
  12. }
  13.  
  14.  
  15.  
  16.  
  17. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  18. {
  19. if(dialogid==1 && response==1)
  20. {
  21. switch(listitem)
  22. {
  23. case 0:
  24. {
  25. GivePlayerWeapon(playerid,46,99999);
  26. }
  27. case 1:
  28. {
  29. GivePlayerWeapon(playerid,22,99999);
  30. }
  31. case 2:
  32. {
  33. GivePlayerWeapon(playerid,24,99999);
  34. }
  35. case 3:
  36. {
  37. GivePlayerWeapon(playerid,25,99999);
  38. }
  39. case 4:
  40. {
  41. GivePlayerWeapon(playerid,27,99999);
  42. }
  43. case 5:
  44. {
  45. GivePlayerWeapon(playerid,29,99999);
  46. }
  47. case 6:
  48. {
  49. GivePlayerWeapon(playerid,30,99999);
  50. }
  51. case 7:
  52. {
  53. GivePlayerWeapon(playerid,31,99999);
  54. }
  55. case 8:
  56. {
  57. GivePlayerWeapon(playerid,34,99999);
  58. }
  59. }
  60. return 1;
  61. }
  62. return 0;
  63. }
  64. #endif
Advertisement
Add Comment
Please, Sign In to add comment