Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- public OnPlayerConnect(playerid)
- {
- new ip[16], ip2[16];
- GetPlayerIp(playerid, ip, 16);
- for(new i=0; i<50; i++) if(IsPlayerConnected(i)) if(!IsPlayerNPC(i)) if(i != playerid)
- {
- GetPlayerIp(i, ip2, 16);
- if(!strcmp(ip, ip2, false))
- {
- Ban(i);
- Ban(playerid);
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment