stock PlayerIP(playerid), how to make?
#7

try this
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;
}
i tested it and it works
Reply


Messages In This Thread
stock PlayerIP(playerid), how to make? - by Remi-X - 23.06.2009, 09:04
Re: stock PlayerIP(playerid), how to make? - by Grim_ - 23.06.2009, 09:06
Re: stock PlayerIP(playerid), how to make? - by MenaceX^ - 23.06.2009, 09:09
Re: stock PlayerIP(playerid), how to make? - by Grim_ - 23.06.2009, 09:10
Re: stock PlayerIP(playerid), how to make? - by Remi-X - 23.06.2009, 09:11
Re: stock PlayerIP(playerid), how to make? - by Grim_ - 23.06.2009, 09:12
Re: stock PlayerIP(playerid), how to make? - by James_Alex - 23.06.2009, 09:17
Re: stock PlayerIP(playerid), how to make? - by OmeRinG - 23.06.2009, 09:17
Re: stock PlayerIP(playerid), how to make? - by Grim_ - 23.06.2009, 09:19
Re: stock PlayerIP(playerid), how to make? - by Remi-X - 23.06.2009, 09:25

Forum Jump:


Users browsing this thread: 4 Guest(s)