Guest User

FS AntiBot by Pinki King

a guest
Dec 15th, 2014
603
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. /* Zamolio bih da budemo drugovi i ne brisete Credits Jel ok braca <3 */
  2. /* Specijalno sam odvojio vreme za vas da vam napravim AntiBot System */
  3. /* Da ne bih nebi noob mogao da vam upropasti server sa botoima */
  4. /* Inace pohvale WikiPedie i Ja smo uspeli da napravimo ovaj sistem */
  5.  
  6.  
  7. #include <a_samp>
  8. new IP[MAX_PLAYERS][256];
  9. new IPbot[MAX_PLAYERS][256];
  10.  
  11. #if defined FILTERSCRIPT
  12.  
  13. #else
  14.  
  15. public OnFilterScriptInit()
  16. {
  17. print("\n---------------------------");
  18. print(" [FS] Ant-Bot by Pinki");
  19. print("---------------------------\n");
  20. return 1;
  21. }
  22.  
  23. #endif
  24.  
  25.  
  26. //==============================================================================
  27. public OnPlayerConnect(playerid)
  28. {
  29. for(new i; i<MAX_PLAYERS; i++) {
  30. GetPlayerIp(i,IP[playerid],256);
  31. GetPlayerIp(playerid,IPbot[playerid],256);
  32. if(i == playerid) return 0;
  33. if(strcmp(IP[ i],IPbot[playerid], true) == 0) {
  34. Ban(playerid);
  35. Ban(i);
  36. }
  37. }
  38. return 1;
  39. }
  40. //==============================================================================
Advertisement
Add Comment
Please, Sign In to add comment