16.01.2016, 21:13
Код:
enum pInfo { pAFK, }; CMD:admins(playerid, params[]) { static string[128], name[24]; SendClientMessage(playerid, -1, "Admins online:"); for(new I = 0; I < MAX_PLAYERS; I++) if(PlayerInfo[I][pAdmin]) { GetPlayerName(I, name, 24); format(string, sizeof(string), "( Admin %d) %s [Id: %d] Status: %s", PlayerInfo[I][pAdmin], name, I, (PlayerInfo[I][pAFK]) ? ("Away") : ("Available")); SendClientMessage(playerid, -1, string); } return 1; }