Advertisement
Guest User

Anti Sobeit

a guest
Aug 1st, 2014
236
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.00 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. #define DIALOG_ChecarHack 14434
  7. #if defined FILTERSCRIPT
  8.  
  9. public OnFilterScriptInit()
  10. {
  11. print("\n--------------------------------------");
  12. print(" Blank Filterscript by your name here");
  13. print("--------------------------------------\n");
  14. return 1;
  15.  
  16. // sobeit detector
  17. forward s0beitDet(playerid); // callback
  18. public s0beitDet(playerid) // callback
  19. {
  20. new Float:x, Float:y, Float:z; // float berfungsi buat pos
  21. GetPlayerCameraFrontVector(playerid, x, y, z); // ketika ini liat ke bawah
  22. #pragma unused x // gak di gunain yg pos X ham, jangan di delete
  23. #pragma unused y // gak di gunain ini jug sama ham, jangan di delete
  24. if(z < -0.8)
  25. {
  26. TogglePlayerControllable(playerid, 1); // buat ngefreeze waktu check player,
  27. new string[528];// string 528 itu fungsi ya gitu :p kepo lu ham,
  28. new pName[MAX_PLAYER_NAME];GetPlayerName(playerid, pName, sizeof pName); // memperpendek
  29. format(string, sizeof(string), "{AA3333}Warning:{FFFF00}%s(ID: %d) {FFFF00}Connect menggunakan {FF0000}s0beit{FFFFFF}. || Kicked", pName, playerid); // ini string/ bisa di sebut text
  30. SendClientMessageToAll(0xFFFFFFAA, string); // ini message ke semua
  31. SetTimerEx("Kontol", 4 * 5000, 0, "i", playerid); // timer buat kick, tanpa timer, Dialog gak muncul, timer ini muncul 5 second setelah spawn
  32. }
  33. else
  34. {
  35. TogglePlayerControllable(playerid, 1);//, SendClientMessage(playerid, -1, "Oke, Kamu bersih dari s0beit"); // send client message ini berfungsi kalau org tersebut gak pake s0beit, tapi gw males ham buat enablenya, jelek
  36. }
  37. return 1;
  38. }
  39.  
  40. forward Kontol(playerid);
  41. public Kontol(playerid)
  42. {
  43. Kick(playerid); // kick player, / boleh Ban(playerid) ,, tapi menurut gue kalau di ban, nnti semakin dikit player, jadi ga nyaman buat main
  44. return 1;
  45. }
  46.  
  47. public OnFilterScriptExit()
  48. {
  49. return 1;
  50. }
  51.  
  52. #else
  53.  
  54. main()
  55. {
  56. print("\n----------------------------------");
  57. print(" Blank Gamemode by your name here");
  58. print("----------------------------------\n");
  59. }
  60.  
  61. #endif
  62.  
  63. public OnGameModeInit()
  64. {
  65. return 1;
  66. }
  67.  
  68. public OnGameModeExit()
  69. {
  70. return 1;
  71. }
  72.  
  73. public OnPlayerRequestClass(playerid, classid)
  74. {
  75. return 1;
  76. }
  77.  
  78. public OnPlayerConnect(playerid)
  79. {
  80. return 1;
  81. }
  82.  
  83. public OnPlayerDisconnect(playerid, reason)
  84. {
  85. return 1;
  86. }
  87.  
  88. public OnPlayerSpawn(playerid)
  89. {
  90.  
  91. SetTimerEx("s0beitDet", 4 * 1000, 0, "i", playerid); // ini timer 4 Secont buat check player, liat noh ada * itu brarti di kali ham, di sini lu ham pasti tanya kenapa gw taruh di spawn, karna deteksi cuma di sini doang ham
  92. TogglePlayerControllable(playerid, 0);
  93. return 1;
  94. }
  95.  
  96. public OnPlayerDeath(playerid, killerid, reason)
  97. {
  98. return 1;
  99. }
  100.  
  101. public OnVehicleSpawn(vehicleid)
  102. {
  103. return 1;
  104. }
  105.  
  106. public OnVehicleDeath(vehicleid, killerid)
  107. {
  108. return 1;
  109. }
  110.  
  111. public OnPlayerText(playerid, text[])
  112. {
  113. return 1;
  114. }
  115.  
  116. public OnPlayerCommandText(playerid, cmdtext[])
  117. {
  118. if (strcmp("/mycommand", cmdtext, true, 10) == 0)
  119. {
  120. // Do something here
  121. return 1;
  122. }
  123. return 0;
  124. }
  125.  
  126. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  127. {
  128. return 1;
  129. }
  130.  
  131. public OnPlayerExitVehicle(playerid, vehicleid)
  132. {
  133. return 1;
  134. }
  135.  
  136. public OnPlayerStateChange(playerid, newstate, oldstate)
  137. {
  138. return 1;
  139. }
  140.  
  141. public OnPlayerEnterCheckpoint(playerid)
  142. {
  143. return 1;
  144. }
  145.  
  146. public OnPlayerLeaveCheckpoint(playerid)
  147. {
  148. return 1;
  149. }
  150.  
  151. public OnPlayerEnterRaceCheckpoint(playerid)
  152. {
  153. return 1;
  154. }
  155.  
  156. public OnPlayerLeaveRaceCheckpoint(playerid)
  157. {
  158. return 1;
  159. }
  160.  
  161. public OnRconCommand(cmd[])
  162. {
  163. return 1;
  164. }
  165.  
  166. public OnPlayerRequestSpawn(playerid)
  167. {
  168. return 1;
  169. }
  170.  
  171. public OnObjectMoved(objectid)
  172. {
  173. return 1;
  174. }
  175.  
  176. public OnPlayerObjectMoved(playerid, objectid)
  177. {
  178. return 1;
  179. }
  180.  
  181. public OnPlayerPickUpPickup(playerid, pickupid)
  182. {
  183. return 1;
  184. }
  185.  
  186. public OnVehicleMod(playerid, vehicleid, componentid)
  187. {
  188. return 1;
  189. }
  190.  
  191. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  192. {
  193. return 1;
  194. }
  195.  
  196. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  197. {
  198. return 1;
  199. }
  200.  
  201. public OnPlayerSelectedMenuRow(playerid, row)
  202. {
  203. return 1;
  204. }
  205.  
  206. public OnPlayerExitedMenu(playerid)
  207. {
  208. return 1;
  209. }
  210.  
  211. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  212. {
  213. return 1;
  214. }
  215.  
  216. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  217. {
  218. return 1;
  219. }
  220.  
  221. public OnRconLoginAttempt(ip[], password[], success)
  222. {
  223. return 1;
  224. }
  225.  
  226. public OnPlayerUpdate(playerid)
  227. {
  228. return 1;
  229. }
  230.  
  231. public OnPlayerStreamIn(playerid, forplayerid)
  232. {
  233. return 1;
  234. }
  235.  
  236. public OnPlayerStreamOut(playerid, forplayerid)
  237. {
  238. return 1;
  239. }
  240.  
  241. public OnVehicleStreamIn(vehicleid, forplayerid)
  242. {
  243. return 1;
  244. }
  245.  
  246. public OnVehicleStreamOut(vehicleid, forplayerid)
  247. {
  248. return 1;
  249. }
  250.  
  251. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  252. {
  253. return 1;
  254. }
  255.  
  256. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  257. {
  258. return 1;
  259. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement