[Ajuda] /admins
#2

pawn Код:
command(admins, playerid) {

    static count = 0, msg[46];

    for (new i = GetMaxPlayers(); i != -1; --i) {
   
        if (IsPlayerConnected(i) && pInfo[i][Administrador] == true) {
       
            format(msg, sizeof(msg), "Administrador Online: %s", pName(i));
            SendClientMessage(playerid, Branco, msg);
            count ++;
        }
    }
    if (count == 0) return SendClientMessage(playerid, Verde, "Nenhum Administrador Online");

    return 1;
}
Reply


Messages In This Thread
/admins - by rCr - 20.04.2013, 20:53
Re: /admins - by Gii - 20.04.2013, 20:57
Re: /admins - by rCr - 20.04.2013, 20:58

Forum Jump:


Users browsing this thread: 1 Guest(s)