31.12.2010, 22:02
I made a code that only returns the players IP who typed the Command in, But I need it to return all of the players on the Server's IP's
Here is the code
Here is the code
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.%s.%s.%s", name, IP);
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Player's IP", str, "Exit", "");
return 1;
}