Getting a Players IP?
#6

pawn Код:
new
        Array[512],
        PIP[17];
    format(Array, sizeof(Array), "Player:\t\tIP:\n");
    foreach(Player, i)
    {
        new
            IP = GetPlayerIp(i, PIP, sizeof(PIP));
        format(Array, sizeof(Array), "%s\n%s(%d)\t\t%s\n", Array, pName(i), i, IP);
    }
    ShowPlayerDialog(playerid, DIALOGID, DIALOG_STYLE_MSGBOX, "IPs", Array, "Ok", "Close");
Might also need this:
pawn Код:
stock pName(playerid)
{
    new
        Name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, Name, sizeof(Name));
    return Name;
}
Reply


Messages In This Thread
Getting a Players IP? - by Luis- - 31.12.2010, 22:02
Re: Getting a Players IP? - by FreshDoubleX - 31.12.2010, 22:07
Re: Getting a Players IP? - by Luis- - 31.12.2010, 22:15
Re: Getting a Players IP? - by Retardedwolf - 31.12.2010, 22:16
Re: Getting a Players IP? - by Luis- - 31.12.2010, 22:19
Re: Getting a Players IP? - by [L3th4l] - 31.12.2010, 22:31
Re: Getting a Players IP? - by FreshDoubleX - 31.12.2010, 22:35
Re: Getting a Players IP? - by Luis- - 31.12.2010, 23:26
Re: Getting a Players IP? - by [L3th4l] - 31.12.2010, 23:29
Re: Getting a Players IP? - by Luis- - 31.12.2010, 23:29

Forum Jump:


Users browsing this thread: 1 Guest(s)