04.06.2013, 04:47
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[65];
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 Status: %s", PlayerName(i), pInfo[i][pAdminLevel], pInfo[i][pAdminDuty] ? ("OnDuty") : ("OffDuty") );
SendClientMessage(playerid, -1, cStr);
Cont++;
}
}
if (!Cont)
return SendClientMessage(playerid,-1,"Nгo temos administradores online no momento.");
return true;
}