20.09.2009, 16:55
I have no clue if this will work, excuse me if it doesn't but I'm half asleep:
You'll have to fix the indentation, as I said I was half asleep when I typed that out.
pawn Код:
public OnPlayerConnect(playerid)
{
new pip[16], pip2[16];
for(new i=0; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
GetPlayerIp(i, pip, sizeof(pip));
GetPlayerIp(playerid, pip2, sizeof(pip2));
if(!strcmp(pip2, pip, true))
{
Kick(i);
}
}
}
return 1;
}