JasperM

Togabble Hitsound by ron_tim

Nov 2nd, 2014
854
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 3.46 KB | None | 0 0
  1. // This is a comment
  2. // uncomment the line below if you want to write a filterscript
  3. #define FILTERSCRIPT
  4.  
  5. #include <a_samp>
  6. new HitSound[MAX_PLAYERS];
  7. #if defined FILTERSCRIPT
  8.  
  9. public OnFilterScriptInit()
  10. {
  11.     print("\n--------------------------------------");
  12.     print(" Hit sound by ron_tim");
  13.     print("--------------------------------------\n");
  14.     return 1;
  15. }
  16.  
  17. public OnFilterScriptExit()
  18. {
  19.     return 1;
  20. }
  21.  
  22. #else
  23.  
  24. main()
  25. {
  26.     print("\n----------------------------------");
  27.     print(" Blank Gamemode by your name here");
  28.     print("----------------------------------\n");
  29. }
  30.  
  31. #endif
  32.  
  33. public OnPlayerConnect(playerid)
  34. {
  35.     HitSound[playerid] = 0;
  36.     return 1;
  37. }
  38. public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart)
  39. {
  40.     if(HitSound[issuerid] == 1)
  41.     {
  42.     PlayerPlaySound(issuerid,17802,0.0,0.0,0.0);
  43.     }
  44.     return 1;
  45. }
  46.  
  47. public OnPlayerDisconnect(playerid, reason)
  48. {
  49.     return 1;
  50. }
  51.  
  52. public OnPlayerSpawn(playerid)
  53. {
  54.     return 1;
  55. }
  56.  
  57. public OnPlayerDeath(playerid, killerid, reason)
  58. {
  59.     return 1;
  60. }
  61.  
  62. public OnVehicleSpawn(vehicleid)
  63. {
  64.     return 1;
  65. }
  66.  
  67. public OnVehicleDeath(vehicleid, killerid)
  68. {
  69.     return 1;
  70. }
  71.  
  72. public OnPlayerText(playerid, text[])
  73. {
  74.     return 1;
  75. }
  76.  
  77. public OnPlayerCommandText(playerid, cmdtext[])
  78. {
  79.     if (strcmp("/hitsound", cmdtext, true, 10) == 0)
  80.     {
  81.         HitSound[playerid] = 1;
  82.         SendClientMessage(playerid, 0x00FF00FF, "Hit sound enabled!");
  83.         return 1;
  84.     }
  85.     if (strcmp("/stophitsound", cmdtext, true, 10) == 0)
  86.     {
  87.         HitSound[playerid] = 0;
  88.         SendClientMessage(playerid, 0x00FF00FF, "Hit sound disabled!");
  89.         return 1;
  90.     }
  91.     return 0;
  92. }
  93.  
  94. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  95. {
  96.     return 1;
  97. }
  98.  
  99. public OnPlayerExitVehicle(playerid, vehicleid)
  100. {
  101.     return 1;
  102. }
  103.  
  104. public OnPlayerStateChange(playerid, newstate, oldstate)
  105. {
  106.     return 1;
  107. }
  108.  
  109. public OnPlayerEnterCheckpoint(playerid)
  110. {
  111.     return 1;
  112. }
  113.  
  114. public OnPlayerLeaveCheckpoint(playerid)
  115. {
  116.     return 1;
  117. }
  118.  
  119. public OnPlayerEnterRaceCheckpoint(playerid)
  120. {
  121.     return 1;
  122. }
  123.  
  124. public OnPlayerLeaveRaceCheckpoint(playerid)
  125. {
  126.     return 1;
  127. }
  128.  
  129. public OnRconCommand(cmd[])
  130. {
  131.     return 1;
  132. }
  133.  
  134. public OnPlayerRequestSpawn(playerid)
  135. {
  136.     return 1;
  137. }
  138.  
  139. public OnObjectMoved(objectid)
  140. {
  141.     return 1;
  142. }
  143.  
  144. public OnPlayerObjectMoved(playerid, objectid)
  145. {
  146.     return 1;
  147. }
  148.  
  149. public OnPlayerPickUpPickup(playerid, pickupid)
  150. {
  151.     return 1;
  152. }
  153.  
  154. public OnVehicleMod(playerid, vehicleid, componentid)
  155. {
  156.     return 1;
  157. }
  158.  
  159. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  160. {
  161.     return 1;
  162. }
  163.  
  164. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  165. {
  166.     return 1;
  167. }
  168.  
  169. public OnPlayerSelectedMenuRow(playerid, row)
  170. {
  171.     return 1;
  172. }
  173.  
  174. public OnPlayerExitedMenu(playerid)
  175. {
  176.     return 1;
  177. }
  178.  
  179. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  180. {
  181.     return 1;
  182. }
  183.  
  184. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  185. {
  186.     return 1;
  187. }
  188.  
  189. public OnRconLoginAttempt(ip[], password[], success)
  190. {
  191.     return 1;
  192. }
  193.  
  194. public OnPlayerUpdate(playerid)
  195. {
  196.     return 1;
  197. }
  198.  
  199. public OnPlayerStreamIn(playerid, forplayerid)
  200. {
  201.     return 1;
  202. }
  203.  
  204. public OnPlayerStreamOut(playerid, forplayerid)
  205. {
  206.     return 1;
  207. }
  208.  
  209. public OnVehicleStreamIn(vehicleid, forplayerid)
  210. {
  211.     return 1;
  212. }
  213.  
  214. public OnVehicleStreamOut(vehicleid, forplayerid)
  215. {
  216.     return 1;
  217. }
  218.  
  219. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  220. {
  221.     return 1;
  222. }
  223.  
  224. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  225. {
  226.     return 1;
  227. }
Add Comment
Please, Sign In to add comment