15.10.2012, 07:07
In public OnPlayerConnect
Insert
Insert
PHP код:
new ip[2][16];
GetPlayerIp(playerid,ip[0],16);
for(new i, m = GetMaxPlayers(), x; i != m; i++)
{
if(!IsPlayerConnected(i) || i == playerid) continue;
GetPlayerIp(i,ip[1],16);
if(!strcmp(ip[0],ip[1],true)) x++;
if(x > 2) return Kick(i);
}