Advertisement
Mciko123

Vidi ovo

Jan 11th, 2017
363
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.31 KB | None | 0 0
  1. new ACTimer;
  2. new Float:MaxVehSpeed[213] =
  3. {
  4. //MAX SPEED //ACCELERATION
  5. 160.0, //25.0
  6. 160.0, //15.0
  7. 200.0, //28.0
  8. 120.0, //25.0
  9. 150.0, //18.0
  10. 165.0, //24.0
  11. 110.0, //25.0
  12. 170.0, //27.0
  13. 110.0, //20.0
  14. 180.0, //18.0
  15. 160.0, //19.0
  16. 240.0, //30.0
  17. 160.0, //23.0
  18. 160.0, //15.0
  19. 140.0, //18.0
  20. 230.0, //30.0
  21. 155.0, //24.0
  22. 200.0, //16.0
  23. 150.0, //15.0
  24. 160.0, //18.0
  25. 180.0, //19.0
  26. 180.0, //21.0
  27. 165.0, //20.0
  28. 145.0, //14.0
  29. 170.0, //30.0
  30. 200.0, //16.0
  31. 200.0, //22.0
  32. 170.0, //20.0
  33. 170.0, //15.0
  34. 200.0, //33.0
  35. 190.0, //1.7
  36. 130.0, //14.0
  37. 80.0, //40.0
  38. 180.0, //20.0
  39. 200.0, //28.0
  40. 120.0, //18.0
  41. 160.0, //18.0
  42. 160.0, //18.0
  43. 160.0, //24.0
  44. 160.0, //23.0
  45. 160.0, //18.0
  46. 75.0, //35.0
  47. 150.0, //16.0
  48. 150.0, //13.0
  49. 110.0, //45.0
  50. 165.0, //22.0
  51. 190.0, //3.0
  52. 200.0, //16.0
  53. 190.0, //30.0
  54. 150.0, //25.0
  55. 120.0, //18.0
  56. 240.0, //30.0
  57. 190.0, //2.5
  58. 190.0, //0.7
  59. 190.0, //1.4
  60. 140.0, //25.0
  61. 160.0, //14.0
  62. 160.0, //15.0
  63. 165.0, //20.0
  64. 160.0, //15.0
  65. 200.0, //1.7
  66. 190.0, //50.0
  67. 190.0, //30.0
  68. 190.0, //40.0
  69. 75.0, //1.0
  70. 75.0, //35.0
  71. 160.0, //22.0
  72. 160.0, //16.0
  73. 190.0, //50.0
  74. 200.0, //16.0
  75. 170.0, //25.0
  76. 160.0, //25.0
  77. 190.0, //1.6
  78. 190.0, //1.2
  79. 160.0, //18.0
  80. 160.0, //24.0
  81. 200.0, //16.0
  82. 200.0, //28.0
  83. 150.0, //14.0
  84. 165.0, //16.0
  85. 200.0, //30.0
  86. 120.0, //18.0
  87. 150.0, //25.0
  88. 120.0, //16.0
  89. 190.0, //0.5
  90. 160.0, //20.0
  91. 100.0, //35.0
  92. 200.0, //16.0
  93. 200.0, //16.0
  94. 170.0, //20.0
  95. 170.0, //22.0
  96. 160.0, //18.0
  97. 160.0, //20.0
  98. 190.0, //3.0
  99. 220.0, //26.0
  100. 170.0, //28.0
  101. 200.0, //26.0
  102. 200.0, //16.0
  103. 140.0, //14.0
  104. 140.0, //14.0
  105. 160.0, //24.0
  106. 75.0, //35.0
  107. 220.0, //26.0
  108. 220.0, //26.0
  109. 160.0, //24.0
  110. 170.0, //20.0
  111. 230.0, //26.0
  112. 165.0, //20.0
  113. 140.0, //14.0
  114. 190.0, //50.0
  115. 190.0, //50.0
  116. 200.0, //16.0
  117. 200.0, //16.0
  118. 200.0, //16.0
  119. 120.0, //25.0
  120. 120.0, //25.0
  121. 165.0, //20.0
  122. 165.0, //22.0
  123. 160.0, //24.0
  124. 200.0, //16.0
  125. 200.0, //16.0
  126. 190.0, //50.0
  127. 190.0, //60.0
  128. 190.0, //50.0
  129. 110.0, //20.0
  130. 160.0, //25.0
  131. 160.0, //20.0
  132. 160.0, //20.0
  133. 170.0, //25.0
  134. 160.0, //18.0
  135. 60.0, //20.0
  136. 70.0, //20.0
  137. 140.0, //25.0
  138. 200.0, //28.0
  139. 160.0, //23.0
  140. 160.0, //40.0
  141. 160.0, //24.0
  142. 110.0, //20.0
  143. 110.0, //20.0
  144. 150.0, //2.0
  145. 160.0, //18.0
  146. 230.0, //30.0
  147. 160.0, //24.0
  148. 165.0, //25.0
  149. 170.0, //27.0
  150. 160.0, //22.0
  151. 160.0, //18.0
  152. 160.0, //18.0
  153. 200.0, //16.0
  154. 160.0, //24.0
  155. 160.0, //17.0
  156. 165.0, //22.0
  157. 160.0, //18.0
  158. 200.0, //16.0
  159. 170.0, //25.0
  160. 180.0, //30.0
  161. 110.0, //45.0
  162. 110.0, //45.0
  163. 200.0, //20.0
  164. 200.0, //28.0
  165. 200.0, //28.0
  166. 200.0, //20.0
  167. 200.0, //28.0
  168. 200.0, //16.0
  169. 75.0, //35.0
  170. 200.0, //24.0
  171. 160.0, //24.0
  172. 160.0, //24.0
  173. 170.0, //35.0
  174. 110.0, //20.0
  175. 110.0, //20.0
  176. 90.0, //18.0
  177. 60.0, //12.0
  178. 110.0, //35.0
  179. 60.0, //12.0
  180. 160.0, //20.0
  181. 160.0, //20.0
  182. 200.0, //16.0
  183. 110.0, //20.0
  184. 160.0, //25.0
  185. 165.0, //24.0
  186. 190.0, //50.0
  187. 160.0, //15.0
  188. 170.0, //15.0
  189. 120.0, //18.0
  190. 165.0, //21.0
  191. 190.0, //40.0
  192. 200.0, //24.0
  193. 140.0, //14.0
  194. 200.0, //30.0
  195. 110.0, //20.0
  196. 120.0, //18.0
  197. 200.0, //16.0
  198. 200.0, //16.0
  199. 60.0, //50.0
  200. 190.0, //1.5
  201. 200.0, //25.0
  202. 200.0, //25.0
  203. 200.0, //25.0
  204. 160.0, //30.0
  205. 165.0, //25.0
  206. 110.0, //24.0
  207. 200.0, //23.0
  208. 200.0, //26.0
  209. 0.0, //0.0
  210. 0.0, //0.0
  211. 160.0, //20.0
  212. 160.0, //20.0
  213. 160.0, //20.0
  214. 140.0, //14.0
  215. 160.0, //20.0
  216. 60.0, //20.0
  217. };
  218.  
  219. public OnPlayerConnect(playerid)
  220. {
  221. ACTimer = SetTimer("AntiCheat", 1000, true);
  222. return 1;
  223. }
  224.  
  225. public OnPlayerDisconnect(playerid, reason)
  226. {
  227. KillTimer(ACTimer);
  228. return 1;
  229. }
  230.  
  231. forward AntiCheat();
  232. public AntiCheat()
  233. {
  234. if(GetPlayerState(i) == PLAYER_STATE_DRIVER)
  235. {
  236. new vid = GetPlayerVehicleID(i), mid = GetVehicleModel(vid), Float:speed = GetSpeed(i);
  237. if(speed > MaxVehSpeed[mid - 400] && MaxVehSpeed[mid - 400] > 30)
  238. {
  239. SCM(i, -1, ""RED"CHEAT | "WHITE"You have been kicked for using speed hack (IN-VEHICLE)");
  240. new string[128];
  241. format(string, sizeof(string), ""SERVERBLUE"SERVER | "WHITE"Player %s has been kicked for using speed hack (IN-VEHICLE)!", GetName(i));
  242. SCMTA(-1, string);
  243. DelayedKick(i);
  244. return 1;
  245. }
  246. }
  247. return 1;
  248. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement