/admins
#2

Cara tinha nada para fazer, porйm fiz este comando aqui agora se quiser usa-lo e aperfeiзoa-lo fica ao seu critйrio.
Man had nothing to do but did this command here now if you want to use it and perfect it is at your discretion.
[ ****** Tradutor Owna ;p ]

pawn Код:
if(strcmp(cmd,"/admins", true) == 0)
{
    new string[258];
    if(preso[playerid] == 0)
    {
        SendClientMessage(playerid, 0x7A7A7AAA, "• [BGL] Administradores e Moderadores Conectados •");
        new aname[MAX_PLAYER_NAME];
        new countADM[playerid] = 0;
        new countMOD[playerid] = 0;
        for(new i=0; i<MAX_PLAYERS; i++)
        {
            if(IsPlayerConnected(i))
            {
                if(PlayerInfo[i][Admin] == 1)
                {
                    GetPlayerName(i,aname,sizeof(aname));
                    format(string,sizeof(string),"%s {008000}[ Moderador ]", aname);
                    SendClientMessage(playerid, -1, string);
                    countMOD[playerid]++;
                }
                else if(PlayerInfo[i][Admin] == 2)
                {
                    GetPlayerName(i,aname,sizeof(aname));
                    format(string,sizeof(string),"%s {FF0000}[ Administrador ]", aname);
                    SendClientMessage(playerid, -1, string);
                    countADM[playerid]++;
                }
                else if(PlayerInfo[i][Admin] == 3)
                {
                    GetPlayerName(i,aname,sizeof(aname));
                    format(string,sizeof(string),"%s {FF0000}[ Administrador ]", aname);
                    SendClientMessage(playerid, -1, string);
                    countADM[playerid]++;
                }
            }
        }
        if(countMOD[playerid] == 0)
        {
            SendClientMessage(playerid, -1, "[ BGL ] {FF0000}Nenhum Moderador online no momento.");
        }
        if(countADM[playerid] == 0)
        {
            SendClientMessage(playerid, -1, "[ BGL ] {FF0000}Nenhum Administrador online no momento.");
        }
    }
    else
    {
        SendClientMessage(playerid,-1,"[ ERRO ] {FF0000}Vocк nгo pode usar comandos estando preso.");
    }
    return 1;
}
Reply


Messages In This Thread
/admins - by lramos15 - 03.08.2013, 04:10
Re: /admins - by [BOPE]Seu._.Madruga - 03.08.2013, 04:51
Re: /admins - by lramos15 - 03.08.2013, 05:14
Re: /admins - by Scenario - 03.08.2013, 05:19
Re: /admins - by lramos15 - 03.08.2013, 05:25
Re: /admins - by Ayumi - 03.08.2013, 12:29
Re: /admins - by lramos15 - 03.08.2013, 13:00
Re: /admins - by BigGroter - 03.08.2013, 14:04
Re: /admins - by lramos15 - 03.08.2013, 14:19
Re: /admins - by BigGroter - 03.08.2013, 16:18

Forum Jump:


Users browsing this thread: 2 Guest(s)