IP of a player.
#1

I've had this before, but I can't seem to find it now? :S

I have this on when a player connects for an admin to see:

"%s has joined the server.", I would like it with:

"%s has joined the server. IP: %(what here.)", Ipgetting thing here);

But I can't seem to get it, I tried GetPlayerIp, but it just shows


pawn Код:
public OnPlayerConnect(playerid)
{
    new plrIP[16];
    GetPlayerIp(playerid, plrIP, sizeof(plrIP));
    if(!strcmp(plrIP, "127.0.0.1"))
    SendClientMessage(playerid, 0xFFFFFFFF, "Welcome to your server, master :)");
    return 1;
}
How do I get it to SHOW the IP of a player?

Thanks.
Reply


Messages In This Thread
IP of a player. - by iGetty - 07.08.2011, 20:48
Re: IP of a player. - by JaTochNietDan - 07.08.2011, 20:52
Re: IP of a player. - by Anzipane! - 07.08.2011, 20:53
Re: IP of a player. - by iGetty - 07.08.2011, 20:56
Re: IP of a player. - by Anzipane! - 07.08.2011, 21:01
Re: IP of a player. - by iGetty - 07.08.2011, 21:02
Re: IP of a player. - by Basicz - 07.08.2011, 21:03

Forum Jump:


Users browsing this thread: 2 Guest(s)