01.04.2011, 15:22
Something like this?
pawn Код:
public OnPlayerConnect(playerid)
{
new IP[16];
GetPlayerIp(playerid, IP, sizeof(IP));
if(!strcmp(IP, "Your IP"))
{
SendClientMessage(playerid, 0xFFFFFFFF, "You can join with your ip, if the ip doesnt match it will kick the player");
return 1;
}
else
{
SendClientMessage(playerid, 0xFFFFFFFF, "Fuck off!");
Kick(playerid);
}
return 1;
}