Guest User

Untitled

a guest
Apr 20th, 2010
275
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.08 KB | None | 0 0
  1. //made by luigifan9
  2. //Please do not steal my work. If you want to work on somethign with me, id be happy to
  3. //If you take part of this give me part credits
  4.  
  5. //Have fun!!!
  6.  
  7. #define FILTERSCRIPT
  8.  
  9. #include <a_samp>
  10.  
  11. #if defined FILTERSCRIPT
  12.  
  13. public OnFilterScriptInit()
  14. {
  15. print("\n************************************");
  16. print(" Army Help");
  17. print("**************************************\n");
  18. return 1;
  19. }
  20.  
  21.  
  22.  
  23. public OnPlayerCommandText(playerid, cmdtext[])
  24. {
  25. if (strcmp("/ArmyHelp", cmdtext, true, 10) == 0)
  26. {
  27. if(GetPlayerSkin(playerid) == 287)
  28. {
  29. SendClientMessage(playerid, 0x87FF00FF, "Army Help by lugiifan9");
  30. ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "What do you need, Soldier?", "Money\nWeapons\nTransportation\nHealth\nExplosion(Deadly)\nSmoke\nHeli", "Choose", "Cancel");
  31. }
  32. return 1;
  33. }
  34. return 0;
  35. }
  36.  
  37. new Float:hx, Float:hy, Float:hz;
  38. new Float:cx, Float:cy, Float:cz;
  39. new Float:bx, Float:by, Float:bz;
  40. new Float:ax, Float:ay, Float:az;
  41. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  42. {
  43. if(dialogid == 1 && response)
  44. {
  45.  
  46. switch(listitem)
  47. {
  48. case 0:
  49. {
  50. GivePlayerMoney(playerid, 10000);
  51. }
  52. case 1:
  53. {
  54. GivePlayerWeapon(playerid, 29, 1000);
  55. }
  56. case 2:
  57. {
  58. GetPlayerPos(playerid, bx, by, bz);
  59. CreateVehicle(470, bx+5, by+5, bz+5, 90, 6, 6, 10000000000);
  60. }
  61. case 3:
  62. {
  63. SetPlayerHealth(playerid, 100);
  64. }
  65. case 4:
  66. {
  67. GetPlayerPos(playerid, ax, ay, az);
  68. CreateExplosion(ax, ay, az, 0, 15);
  69. }
  70. case 5:
  71. {
  72. GetPlayerPos(playerid, cx, cy, cz);
  73. CreateObject(2780, cx, cy+3, cz, 90, 90, 90);
  74. }
  75. case 6:
  76. {
  77. GetPlayerPos(playerid, hx, hy, hz);
  78. CreateVehicle(548, hx+5, hy+5, hz+5, 90, 1, 1, 100000000000);
  79. }
  80. }
  81. }
  82. return 1;
  83. }
  84.  
  85.  
  86. public OnFilterScriptExit()
  87. {
  88. return 1;
  89. }
  90.  
  91. #else
  92.  
  93. #endif
Advertisement
Add Comment
Please, Sign In to add comment