12.06.2010, 19:52
I dont recommend what you are doing because a lot of peoples ip's change dynamically. But do this:
pawn Код:
public OnPlayerConnect(playerid)
{
new ip[64],newip[64];
ip = dini_Get(file, "Ip");
GetPlayerIp(playerid, ip, sizeof(ip)); //function params i forgot xD might have to correct this
if(strcmp(ip, newip, true) == 0)
{
LoginPlayer..
}
else
{
Kick(playerid); // ip doesnt match in file
}
return 1;
}

