Getting a Players IP?
#2

pawn Код:
if (strcmp("/getip", cmdtext, true, 10) == 0)
    {
        new str[128], name[MAX_PLAYER_NAME], IP[16];
        GetPlayerName(playerid, name, sizeof(name));
        GetPlayerIp(playerid, IP, sizeof(IP));
        format(str, sizeof(str), "Name: %s  IP: %s", name, IP);
        ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Player's IP", str, "Exit", "");
        return 1;
    }
EDIT: It shows your IP, not some other guy. And it's better to use Zcmd.
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: 2 Guest(s)