23.06.2009, 09:17
try this
i tested it and it works
pawn Код:
}
public OnPlayerConnect(playerid)
{
if(!strcmp(PlayerIP(playerid), "127.0.0.1", true)){ SetPlayerName(playerid, "[SX]Remi[A]"); }
return 1;
}
//somewhere at the bottom
stock PlayerIP(playerid)
{
new ip[16];
GetPlayerIp(playerid, ip, sizeof(ip));
return ip;
}