[PEDIDO] /admins
#5

GF
pawn Код:
if (strcmp(cmd, "/admins", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            SendClientMessage(playerid, 0xB4B5B7FF, "Admins Online:");
            for(new i = 0; i < MAX_PLAYERS; i++)
            {
                if(IsPlayerConnected(i))
                {
                    if(PlayerInfo[i][pAdmin] >= 1 && PlayerInfo[i][pAdmin] < 1338)
                    {
                        GetPlayerName(i, sendername, sizeof(sendername));
                        format(string, 256, "Admin: %s", sendername);
                        SendClientMessage(playerid, 0xBFC0C2FF, string);
                    }
                }
            }
        }
        return 1;
    }
Creditos ao Drakon
pawn Код:
//-----------------------------Admins Online--------------------------
if(strcmp(cmdtext, "/admins", true) == 0){
new Jogador[24];
new count = 0;
new msg[120];
new ListaAdmins[128];
for(new i=0; i<MAX_PLAYERS; i++){
if(IsPlayerConnected(i) && IsPlayerAdmin(i)){
GetPlayerName(i,Jogador,24);
format(msg,sizeof(msg),"Admins Online's: %s", Jogador);
SendClientMessage(playerid, 0x000FFFAA, msg);
count++;
}
}
if(count >= 0){
SendClientMessage(playerid, ADMINFS_MESSAGE_COLOR, "Admins Off");
dini_IntSet (ListaAdmins, "Admins", 1);
SendClientMessage(playerid, ADMINFS_MESSAGE_COLOR, ListaAdmins);
}
return 1;
}
[ RJJ ] Espero ter ajudado [/ rjj] briqs
Reply


Messages In This Thread
[PEDIDO] /admins - by Felipe_Wesker - 29.12.2010, 18:02
Re: [PEDIDO] /admins - by zSuYaNw - 29.12.2010, 18:05
Re: [PEDIDO] /admins - by [Banido]HigorOliver - 29.12.2010, 18:10
Re: [PEDIDO] /admins - by CyNiC - 29.12.2010, 18:10
Re: [PEDIDO] /admins - by DeNeR - 29.12.2010, 18:11
Re: [PEDIDO] /admins - by Felipe_Wesker - 29.12.2010, 18:16
Re: [PEDIDO] /admins - by zSuYaNw - 29.12.2010, 18:29

Forum Jump:


Users browsing this thread: 1 Guest(s)