SA-MP Forums Archive
[Pedido] Comando /admins - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Pedido] Comando /admins (/showthread.php?tid=615741)



Comando /admins - TheM4st3r - 26.08.2016

Ola gostaria que alguйm fizesse um comando /admins para mim usando esse sistema OBG

Код HTML:
https://sampforum.blast.hk/showthread.php?tid=459241



Re: Comando /admins - viniciussvl - 26.08.2016

O que esse comando /admins faria? Seja mais objetivo!


Re: Comando /admins - F1N4L - 26.08.2016

Quote:
Originally Posted by viniciussvl
Посмотреть сообщение
O que esse comando /admins faria? Seja mais objetivo!
Listagem de admins online...


Re: Comando /admins - Kamper - 26.08.2016

Quote:
Originally Posted by F1N4L
Посмотреть сообщение
Listagem de admins online...



Re: Comando /admins - TheM4st3r - 26.08.2016

Listagem de todos adm's online.


Re: Comando /admins - arakuta - 26.08.2016

Passe um loop por todos os jogados, verifique se estб online e й admin. Se for, mande a mensagem formatada com o nick e ID.

Como й um tуpic de pedido (ZCMD):

PHP код:
CMD:admins(playerid)
{    
    new 
text[100], name[24];
    for(new 
iMAX_PLAYERS; ++i)
    {
        
// Loop de 0 a 500 [?]
        
if(IsPlayerConnected(i) && pAdmin[i][Level])
        {
            
// Se o jogador estiver conectado e for admin
            
            
GetPlayerName(i,name,24);
            
format(text,100,"%s [%d]",name,i);
            
SendClientMessage(playerid,-1,text);
        }
    }
    return 
1;

Se quiser aprender mais: https://sampforum.blast.hk/showthread.php?tid=290735