[Pedido] /vercomandos.
#6

Quote:
Originally Posted by BarBePie
Посмотреть сообщение
Topo:
PHP код:
static boolVerCmds
Onplayercommandtext
PHP код:
    if(VerCmds == true)
    {
        static 
pName[MAX_PLAYER_NAME], string[128];
         
GetPlayerName(playeridpNameMAX_PLAYER_NAME);
        
format(stringsizeof(string), "[VER CMDS] %s (%d) digitou %s"pName,playerid,cmdtext);
        for (new 
0MAX_PLAYERSi++)
        {
            if(
IsPlayerConnected(i))
            {
                if( 
IsplayerAdmin(i))
                {
                    
SendClientMessage(i, -1string);
                }
            }
        }
        return 
1;
     } 
CMDS:

PHP код:
     CMD:lercmds(playerid)
     {
         
Vercmds true;
        return 
1;
    }
    
CMD:naolercmds(playerid)
     {
         
Vercmds false;
        return 
1;
    } 
Voce pode alterar a restriзгo (IsplayerAdmin) para sua variavel de admin
Ty, em breve vou testar.
Reply


Messages In This Thread
/vercomandos. - by Luiiiz - 05.03.2017, 00:00
Re: /vercomandos. - by GuiKommander - 05.03.2017, 00:09
Re: /vercomandos. - by Felipe1241421 - 05.03.2017, 00:11
Re: /vercomandos. - by Luiiiz - 05.03.2017, 00:11
Re: /vercomandos. - by BarBePie - 05.03.2017, 00:15
Re: /vercomandos. - by Luiiiz - 05.03.2017, 00:27

Forum Jump:


Users browsing this thread: 1 Guest(s)