TYUI

AntiBot by Miroslav

Jun 11th, 2013
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.30 KB | None | 0 0
  1. #include <a_samp>
  2.  
  3. public OnPlayerConnect(playerid)
  4. {
  5. new ip[16], ip2[16];
  6. GetPlayerIp(playerid, ip, 16);
  7. for(new i=0; i<50; i++) if(IsPlayerConnected(i)) if(!IsPlayerNPC(i)) if(i != playerid)
  8. {
  9. GetPlayerIp(i, ip2, 16);
  10. if(!strcmp(ip, ip2, false))
  11. {
  12. Ban(i);
  13. Ban(playerid);
  14. }
  15. }
  16. return 1;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment