Advertisement
LazoX

Untitled

Oct 21st, 2018
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.55 KB | None | 0 0
  1. //////////////////////////////////////////////////////////////////
  2. //FILTERCRIPT ANTI C-BUG by Mr.Bean
  3. //CREDITS:Mr.Bean
  4. //////////////////////////////////////////////////////////////
  5. #include <a_samp>
  6.  
  7.  
  8. public OnGameModeInit()
  9. {
  10. // Don't use these lines if it's a filterscript
  11. SetGameModeText("Blank Script");
  12. AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
  13. return 1;
  14. }
  15.  
  16. public OnGameModeExit()
  17. {
  18. return 1;
  19. }
  20.  
  21. public OnPlayerRequestClass(playerid, classid)
  22. {
  23. SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
  24. SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
  25. SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
  26. return 1;
  27. }
  28.  
  29. public OnPlayerConnect(playerid)
  30. {
  31. return 1;
  32. }
  33.  
  34. public OnPlayerDisconnect(playerid, reason)
  35. {
  36. return 1;
  37. }
  38.  
  39. public OnPlayerSpawn(playerid)
  40. {
  41. return 1;
  42. }
  43.  
  44. public OnPlayerDeath(playerid, killerid, reason)
  45. {
  46. return 1;
  47. }
  48.  
  49. public OnVehicleSpawn(vehicleid)
  50. {
  51. return 1;
  52. }
  53.  
  54. public OnVehicleDeath(vehicleid, killerid)
  55. {
  56. return 1;
  57. }
  58.  
  59. public OnPlayerText(playerid, text[])
  60. {
  61. return 1;
  62. }
  63.  
  64. public OnPlayerCommandText(playerid, cmdtext[])
  65. {
  66. if (strcmp("/mycommand", cmdtext, true, 10) == 0)
  67. {
  68. // Do something here
  69. return 1;
  70. }
  71. return 0;
  72. }
  73.  
  74. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  75. {
  76. return 1;
  77. }
  78.  
  79. public OnPlayerExitVehicle(playerid, vehicleid)
  80. {
  81. return 1;
  82. }
  83.  
  84. public OnPlayerStateChange(playerid, newstate, oldstate)
  85. {
  86. return 1;
  87. }
  88.  
  89. public OnPlayerEnterCheckpoint(playerid)
  90. {
  91. return 1;
  92. }
  93.  
  94. public OnPlayerLeaveCheckpoint(playerid)
  95. {
  96. return 1;
  97. }
  98.  
  99. public OnPlayerEnterRaceCheckpoint(playerid)
  100. {
  101. return 1;
  102. }
  103.  
  104. public OnPlayerLeaveRaceCheckpoint(playerid)
  105. {
  106. return 1;
  107. }
  108.  
  109. public OnRconCommand(cmd[])
  110. {
  111. return 1;
  112. }
  113.  
  114. public OnPlayerRequestSpawn(playerid)
  115. {
  116. return 1;
  117. }
  118.  
  119. public OnObjectMoved(objectid)
  120. {
  121. return 1;
  122. }
  123.  
  124. public OnPlayerObjectMoved(playerid, objectid)
  125. {
  126. return 1;
  127. }
  128.  
  129. public OnPlayerPickUpPickup(playerid, pickupid)
  130. {
  131. return 1;
  132. }
  133.  
  134. public OnVehicleMod(playerid, vehicleid, componentid)
  135. {
  136. return 1;
  137. }
  138.  
  139. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  140. {
  141. return 1;
  142. }
  143.  
  144. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  145. {
  146. return 1;
  147. }
  148.  
  149. public OnPlayerSelectedMenuRow(playerid, row)
  150. {
  151. return 1;
  152. }
  153.  
  154. public OnPlayerExitedMenu(playerid)
  155. {
  156. return 1;
  157. }
  158.  
  159. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  160. {
  161. return 1;
  162. }
  163.  
  164. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  165. {
  166. if ((oldkeys & KEY_FIRE) && (newkeys & KEY_CROUCH)) //<--- Line 492
  167. {
  168. new weapon = GetPlayerWeapon(playerid);
  169. if(weapon == 24)
  170. {
  171. ApplyAnimation(playerid,"GYMNASIUM","gym_tread_falloff",1.0,0,0,0,0,0);
  172. ApplyAnimation(playerid,"GYMNASIUM","gym_tread_falloff",1.0,0,0,0,0,0);
  173. GameTextForPlayer(playerid, "~r~PRESTANI DA RADIS C-BUG !", 5000, 1);
  174. }
  175. }
  176. return 1;
  177. }
  178.  
  179. public OnRconLoginAttempt(ip[], password[], success)
  180. {
  181. return 1;
  182. }
  183.  
  184. public OnPlayerUpdate(playerid)
  185. {
  186. return 1;
  187. }
  188.  
  189. public OnPlayerStreamIn(playerid, forplayerid)
  190. {
  191. return 1;
  192. }
  193.  
  194. public OnPlayerStreamOut(playerid, forplayerid)
  195. {
  196. return 1;
  197. }
  198.  
  199. public OnVehicleStreamIn(vehicleid, forplayerid)
  200. {
  201. return 1;
  202. }
  203.  
  204. public OnVehicleStreamOut(vehicleid, forplayerid)
  205. {
  206. return 1;
  207. }
  208.  
  209. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  210. {
  211. return 1;
  212. }
  213.  
  214. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  215. {
  216. return 1;
  217. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement