[Ajuda] CMD:admins
#7

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;
}
Reply


Messages In This Thread
CMD:admins - by willttoonn - 04.06.2013, 02:58
Re: CMD:admins - by Gii - 04.06.2013, 03:23
Re: CMD:admins - by willttoonn - 04.06.2013, 03:32
Re: CMD:admins - by Gii - 04.06.2013, 03:36
Re: CMD:admins - by willttoonn - 04.06.2013, 03:40
Re: CMD:admins - by willttoonn - 04.06.2013, 04:18
Re: CMD:admins - by Gii - 04.06.2013, 04:47
Re: CMD:admins - by willttoonn - 04.06.2013, 17:21
Re: CMD:admins - by Schocc - 04.06.2013, 17:30
Re: CMD:admins - by willttoonn - 04.06.2013, 22:05

Forum Jump:


Users browsing this thread: 1 Guest(s)