31.12.2010, 22:31
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");
pawn Код:
stock pName(playerid)
{
new
Name[MAX_PLAYER_NAME];
GetPlayerName(playerid, Name, sizeof(Name));
return Name;
}