Advertisement
Guest User

Untitled

a guest
Jul 1st, 2012
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.38 KB | None | 0 0
  1. #include <a_samp>
  2.  
  3. public OnPlayerConnect(playerid)
  4. {
  5.     new ip[2][16];
  6.     GetPlayerIp(playerid,ip[0],16);
  7.     for(new i, m = GetMaxPlayers(), x; i != m; i++)
  8.     {
  9.         if(!IsPlayerConnected(i) || i == playerid) continue;
  10.         GetPlayerIp(i,ip[1],16);
  11.         if(!strcmp(ip[0],ip[1],true)) x++;
  12.         if(x > 2) return Kick(i);
  13.     }
  14.     return 1;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement