SA-MP Forums

Go Back   SA-MP Forums > Non-English > Languages > Português/Portuguese

Reply
 
Thread Tools Display Modes
Old 29/12/2010, 07:02 PM   #1
Felipe_Wesker
Gangsta
 
Join Date: Nov 2010
Posts: 599
Reputation: 2
Default [PEDIDO] /admins

Bom, como o cmd ja deve dizer, quero o cmd /admins > dai mostra os admins q estao online;

- Eu sei que tem no Search, só que ja testei eles no meu gamemode e nada, entao queria um decente dessa vez..
Felipe_Wesker is offline   Reply With Quote
Old 29/12/2010, 07:05 PM   #2
zSuYaNw
Godfather
 
zSuYaNw's Avatar
 
Join Date: Apr 2010
Location: Santa Catarina
Posts: 6,845
Reputation: 670
Default Re: [PEDIDO] /admins

tem no código na seção Códigos.

Ou
pawn Code:
if(!strcmp(cmdtext, "/admins", true))
{
     new Jogador[24];
     new count = 0;
     new msg[120];
     for(new i=0; i<MAX_PLAYERS; i++)
     {
          if(IsPlayerConnected(i) && IsPlayerAdmin(i))
          {
               GetPlayerName(i,Jogador,24);
               format(msg,sizeof(msg),"Admins Online: %s", Jogador);
               SendClientMessage(playerid, 0x000FFFAA, msg);
               count++;
          }
     }
     if(count == 0) return  SendClientMessage(playerid, COR_VERMELHO, "Não tem nenhum adminstrador online agora!");
     return true;
}
zSuYaNw is offline   Reply With Quote
Old 29/12/2010, 07:10 PM   #3
[Banido]HigorOliver
Huge Clucker
 
[Banido]HigorOliver's Avatar
 
Join Date: Nov 2010
Posts: 249
Reputation: 0
Default Re: [PEDIDO] /admins

pawn Code:
stock Admins(playerid){
    new string[100];
    for(new i; i <MAX_PLAYERS; i++) {
    if(IsPlayerAdmin(i){
    format(string, sizeof(string), "Admins: %s",PlayerName(i));
    SendClientMessage(playerid,0,string);
    }
}

stock PlayerName(playerid)
{
    new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, MAX_PLAYER_NAME);
    return name;
}
__________________
Code:
[/URL] WwW.FekSquad.Net Em breve a Volta do BPA
[Banido]HigorOliver is offline   Reply With Quote
Old 29/12/2010, 07:10 PM   #4
CyNiC
High-roller
 
Join Date: Jan 2009
Location: Brazil
Posts: 1,410
Reputation: 203
Default Re: [PEDIDO] /admins

pawn Code:
if(strcmp("/admins", cmdtext, true) == 0)
{
    new string[128], Name[MAX_PLAYER_NAME];
    SendClientMessage(playerid, 0xFF4040AA, "Admins Online:");
    for(new i = 0; i < MAX_PLAYERS; ++i)
    {
        if(IsPlayerAdmin(i))
        {
            GetPlayerName(i, Name, sizeof Name);
            format(string, sizeof string, "%s [Admin RCON]" Name);  
            SendClientMessage(playerid, 0xFFFFFFAA, string);
        }
    }
    return true;
}

PS: Não vi que já tinham postado.
__________________
My scripts
Brazucas'Server
CyNiC is offline   Reply With Quote
Old 29/12/2010, 07:11 PM   #5
DeNeR
Big Clucker
 
DeNeR's Avatar
 
Join Date: Oct 2010
Posts: 57
Reputation: 0
Default Re: [PEDIDO] /admins

GF
pawn Code:
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 Code:
//-----------------------------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
__________________
"Eu pensei que tinha amigos, mas no fim morremos sozinhos".
DeNeR is offline   Reply With Quote
Old 29/12/2010, 07:16 PM   #6
Felipe_Wesker
Gangsta
 
Join Date: Nov 2010
Posts: 599
Reputation: 2
Default Re: [PEDIDO] /admins

thanks garfiel, Esse seu ai ta funfando 100%, vlws.
Felipe_Wesker is offline   Reply With Quote
Old 29/12/2010, 07:29 PM   #7
zSuYaNw
Godfather
 
zSuYaNw's Avatar
 
Join Date: Apr 2010
Location: Santa Catarina
Posts: 6,845
Reputation: 670
Default Re: [PEDIDO] /admins

[ RJJ ] Espero Ter Ajudado [/ RJJ ]²

Brink's
zSuYaNw is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[PEDIDO]Quando Admin loga no server[PEDIDO] Xapita_Halls Português/Portuguese 12 02/10/2010 11:09 PM


All times are GMT. The time now is 12:44 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.