Guest User

Untitled

a guest
May 23rd, 2020
371
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.58 KB | None | 0 0
  1. /*
  2. System Buff By SavaGe
  3. Channels: @CookieRP | @SaScript_S
  4. @HehChiMigi
  5. */
  6. #include <a_samp>
  7. #include <zcmd>
  8.  
  9. //Dialog Buff
  10. #define DIALOG_BUFFMENU 1
  11. #define DIALOG_BUFFM4 2
  12. #define DIALOG_BUFFDEAGLE 3
  13. #define DIALOG_BUFFMP5 4
  14. //New Buff
  15. new MightyM4,
  16. MightyDeagle,
  17. MightyMP5;
  18.  
  19. #if defined FILTERSCRIPT
  20.  
  21. public OnFilterScriptInit()
  22. {
  23. print("\n--------------------------------------");
  24. print(" Buff System By SavaGe ");
  25. print("--------------------------------------\n");
  26. return 1;
  27. }
  28.  
  29. public OnFilterScriptExit()
  30. {
  31. return 1;
  32. }
  33.  
  34. #else
  35.  
  36. main()
  37. {
  38. print("\n----------------------------------");
  39. print(" Buff System By SavaGe ");
  40. print("----------------------------------\n");
  41. }
  42.  
  43. #endif
  44.  
  45. public OnGameModeInit()
  46. {
  47. SetGameModeText("Blank Script");
  48. AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
  49. return 1;
  50. }
  51.  
  52. public OnGameModeExit()
  53. {
  54. return 1;
  55. }
  56.  
  57. public OnPlayerRequestClass(playerid, classid)
  58. {
  59. SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
  60. SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
  61. SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
  62. return 1;
  63. }
  64.  
  65. public OnPlayerConnect(playerid)
  66. {
  67. return 1;
  68. }
  69.  
  70. public OnPlayerDisconnect(playerid, reason)
  71. {
  72. return 1;
  73. }
  74.  
  75. public OnPlayerSpawn(playerid)
  76. {
  77. return 1;
  78. }
  79.  
  80. public OnPlayerDeath(playerid, killerid, reason)
  81. {
  82. return 1;
  83. }
  84.  
  85. public OnVehicleSpawn(vehicleid)
  86. {
  87. return 1;
  88. }
  89.  
  90. public OnVehicleDeath(vehicleid, killerid)
  91. {
  92. return 1;
  93. }
  94.  
  95. public OnPlayerText(playerid, text[])
  96. {
  97. return 1;
  98. }
  99.  
  100. CMD:hello(playerid) return SendClientMessage(playerid, -1, "Hello World!");
  101.  
  102. CMD:buff(playerid)
  103. {
  104. ShowPlayerDialog(playerid, DIALOG_BUFFMENU, DIALOG_STYLE_LIST, "(fffm)","Mighty M4\nMighty Deagle\nMighty MP5","Select","Cancel");
  105. return 1;}
  106.  
  107. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  108. {
  109. return 1;
  110. }
  111.  
  112. public OnPlayerExitVehicle(playerid, vehicleid)
  113. {
  114. return 1;
  115. }
  116.  
  117. public OnPlayerStateChange(playerid, newstate, oldstate)
  118. {
  119. return 1;
  120. }
  121.  
  122. public OnPlayerEnterCheckpoint(playerid)
  123. {
  124. return 1;
  125. }
  126.  
  127. public OnPlayerLeaveCheckpoint(playerid)
  128. {
  129. return 1;
  130. }
  131.  
  132. public OnPlayerEnterRaceCheckpoint(playerid)
  133. {
  134. return 1;
  135. }
  136.  
  137. public OnPlayerLeaveRaceCheckpoint(playerid)
  138. {
  139. return 1;
  140. }
  141.  
  142. public OnRconCommand(cmd[])
  143. {
  144. return 1;
  145. }
  146.  
  147. public OnPlayerRequestSpawn(playerid)
  148. {
  149. return 1;
  150. }
  151.  
  152. public OnObjectMoved(objectid)
  153. {
  154. return 1;
  155. }
  156.  
  157. public OnPlayerObjectMoved(playerid, objectid)
  158. {
  159. return 1;
  160. }
  161.  
  162. public OnPlayerPickUpPickup(playerid, pickupid)
  163. {
  164. return 1;
  165. }
  166.  
  167. public OnVehicleMod(playerid, vehicleid, componentid)
  168. {
  169. return 1;
  170. }
  171.  
  172. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  173. {
  174. return 1;
  175. }
  176.  
  177. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  178. {
  179. return 1;
  180. }
  181.  
  182. public OnPlayerSelectedMenuRow(playerid, row)
  183. {
  184. return 1;
  185. }
  186.  
  187. public OnPlayerExitedMenu(playerid)
  188. {
  189. return 1;
  190. }
  191.  
  192. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  193. {
  194. return 1;
  195. }
  196.  
  197. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  198. {
  199. return 1;
  200. }
  201.  
  202. public OnRconLoginAttempt(ip[], password[], success)
  203. {
  204. return 1;
  205. }
  206.  
  207. public OnPlayerUpdate(playerid)
  208. {
  209. return 1;
  210. }
  211.  
  212. public OnPlayerStreamIn(playerid, forplayerid)
  213. {
  214. return 1;
  215. }
  216.  
  217. public OnPlayerStreamOut(playerid, forplayerid)
  218. {
  219. return 1;
  220. }
  221.  
  222. public OnVehicleStreamIn(vehicleid, forplayerid)
  223. {
  224. return 1;
  225. }
  226.  
  227. public OnVehicleStreamOut(vehicleid, forplayerid)
  228. {
  229. return 1;
  230. }
  231.  
  232. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  233. {
  234. if(dialogid == DIALOG_BUFFMENU)
  235. {
  236. if(response)
  237. {
  238. if(listitem == 0)
  239. {
  240. ShowPlayerDialog(playerid, DIALOG_BUFFM4, DIALOG_STYLE_MSGBOX, "Mighty M4", "Ok @HehChiMigi?","Ok","Cancel");
  241. }
  242. if(listitem == 1)
  243. {
  244. ShowPlayerDialog(playerid, DIALOG_BUFFDEAGLE, DIALOG_STYLE_MSGBOX, "Mighty Deagle", "Ok @HehChiMigi?","Ok","Cancel");
  245. }
  246. if(listitem == 2)
  247. {
  248. ShowPlayerDialog(playerid, DIALOG_BUFFMP5, DIALOG_STYLE_MSGBOX, "Mighty MP5", "Ok @HehChiMigi?","Ok","Cancel");
  249. }
  250. }
  251. }
  252. if(dialogid == DIALOG_BUFFM4)
  253. {
  254. if(response)
  255. {
  256. MightyM4 = 1;
  257. SendClientMessage(playerid, -1, "{00FFFF}[Buff]:{FF0000} M4 Mighty Enabled!");
  258. }
  259. }
  260. if(dialogid == DIALOG_BUFFDEAGLE)
  261. {
  262. if(response)
  263. {
  264. MightyDeagle = 1;
  265. SendClientMessage(playerid, -1, "{00FFFF}[Buff]:{FF0000} Deagle Mighty Enabled!");
  266. }
  267. }
  268. if(dialogid == DIALOG_BUFFMP5)
  269. {
  270. if(response)
  271. {
  272. MightyMP5 = 1;
  273. SendClientMessage(playerid, -1, "{00FFFF}[Buff]:{FF0000} MP5 Mighty Enabled!");
  274. }
  275. }
  276. return 1;
  277. }
  278.  
  279. forward OnPlayerGiveDamage(playerid, damagedid, Float:amount, weaponid, bodypart);
  280. public OnPlayerGiveDamage(playerid, damagedid, Float:amount, weaponid, bodypart)
  281. {
  282. if(MightyM4)
  283. {
  284. if(GetPlayerWeapon(playerid)==WEAPON_M4)
  285. {
  286. new Float:test;
  287. GetPlayerHealth(damagedid, test);
  288. SetPlayerHealth(damagedid, test-50);
  289. }
  290. return 0;}
  291. if(MightyDeagle)
  292. {
  293. if(GetPlayerWeapon(playerid)==WEAPON_DEAGLE)
  294. {
  295. new Float:test;
  296. GetPlayerHealth(damagedid, test);
  297. SetPlayerHealth(damagedid, test-70);
  298. }
  299. return 0;}
  300. if(MightyMP5)
  301. {
  302. if(GetPlayerWeapon(playerid)==WEAPON_MP5)
  303. {
  304. new Float:test;
  305. GetPlayerHealth(damagedid, test);
  306. SetPlayerHealth(damagedid, test-50);
  307. }
  308. return 0;}
  309. return 1;}
  310. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  311. {
  312. return 1;
  313. }
Add Comment
Please, Sign In to add comment