03.06.2010, 23:18
Код:
if (strcmp(cmd, "/admins", true) == 0)) { new count = 0; SendClientMessage(playerid, COLOR_YELLOW, "[ ! ] List of online adminstrators"); for(new i = 0; i < MAX_PLAYERS; i++) { if (IsPlayerConnected(i)) { if(pInfo[i][pAdmin] > 0) { GetPlayerName(i, sendername, sizeof(sendername)); format(string, 128, "<%i> %s", i,sendername,Admin[i]); SendClientMessage(playerid, COLOR_WHITE, string); count++; } } } SendClientMessage(playerid, COLOR_YELLOW, "[ ! ] End of the list"); return 1; }