[Pedido] Comando /admins
#6

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
Reply


Messages In This Thread
Comando /admins - by TheM4st3r - 26.08.2016, 16:36
Re: Comando /admins - by viniciussvl - 26.08.2016, 18:22
Re: Comando /admins - by F1N4L - 26.08.2016, 18:23
Re: Comando /admins - by Kamper - 26.08.2016, 18:25
Re: Comando /admins - by TheM4st3r - 26.08.2016, 18:45
Re: Comando /admins - by arakuta - 26.08.2016, 18:47

Forum Jump:


Users browsing this thread: 4 Guest(s)