10.08.2011, 15:40
pawn Код:
#define DIALOG_FPS_LIST (1337)
new FPSList[512];
for(new i = 0; i < MAX_PLAYERS; ++i)
{
if(IsPlayerConnected(i) && !IsPlayerNPC(i))
{
format(FPSList, sizeof(FPSList), "%s%s: %s\n", FPSList, pName(i), GetPlayerFPS(i));
ShowPlayerDialog(playerid, DIALOG_FPS_LIST, DIALOG_STYLE_MSGBOX, "Players FPS", FPSList, "Ok", "");
}
}
stock pName(playerid)
{
new iName[MAX_PLAYER_NAME];
GetPlayerName(playerid, iName, sizeof(iName));
return iName;
}