18.05.2009, 19:10
well, i've currently got this sort of working, but it wont display all the admins, only 1!
Help is very thankful.
Код:
dcmd_admins(playerid, params[]) { for (new i = 0; i < MAX_PLAYERS; i++) { new string[256], name[MAX_PLAYER_NAME]; SendClientMessage(i, COLOR_GREEN, "Current Admins Online :"); if (IsPlayerConnected(i)) { if (dini_Int(GetPlayerPath(i), "admin") > 0) { new level = dini_Int(GetPlayerPath(i), "admin"); GetPlayerName(i, name, sizeof(name)); format(string, sizeof(string), "%s - Level %d", name, level); SendClientMessage(i, COLOR_WHITE, string); return 1; } else { SendClientMessage(i, COLOR_WHITE, "Currently No Admins Online."); return 1; } } } #pragma unused params #pragma unused playerid }