04.06.2013, 03:23
pawn Код:
CMD:admins(playerid) {
if (pInfo[playerid][pHour] < 0)
return SendClientMessage(playerid,-1, " Vocк precisa de 0 horas para digitar este comando.");
new Cont, cStr[50];
static i;
for ( i = GetMaxPlayers() - 1; i != -1; --i ) {
if ( IsPlayerConnected(i) && pInfo[i][pAdminLevel] > 0) {
format (cStr, sizeof cStr, "Admin: %s Nнvel: %i", PlayerName(i), pInfo[i][pAdminLevel] );
SendClientMessage(playerid, -1, cStr);
Cont++;
}
}
if (!Cont)
return SendClientMessage(playerid,-1,"Nгo temos administradores online no momento.");
return true;
}