[Ajuda] Ver todos Cmd's
#2

Vocк vai precisar de uma include, chamada Foreach, procure no ****** que vocк achara .

Topo do GM
PHP код:
new vercmds[MAX_PLAYERS]= 0
em OnPlayerCommandText
PHP код:
    if (strcmp(cmdtext,"/vercmds"true)==0)
    {
        if(
vercmds[playerid] == 0)
        {
            
vercmds[playerid] = 1;
            
SendClientMessage(playerid, -1" | INFO | Comando efetuado com sucesso!");
        }
        else if(
vercmds[playerid] == 1)
        {
            
vercmds[playerid] = 0;
            
SendClientMessage(playerid0x0016DDFF"Agora vocк nao esta mais lendo os comandos do servidor!");
        }
        return 
1;
    } 
em OnPlayerText

PHP код:
    foreach(Playeri)
    {
        if(
vercmds[i] == 1)
        {
             new 
stringcmd[128];
              new 
playa[MAX_PLAYER_NAME];
               
GetPlayerName(playeridplaya,MAX_PLAYER_NAME);
               
format(stringcmd128" | INFO | O jogador %s (%d) digitou o comando ( %s )."playa,playerid,cmdtext);
            
SendClientMessage(i,0x0016DDFF,stringcmd);
        }
    } 
Reply


Messages In This Thread
Ver todos Cmd's - by Stroon - 06.03.2014, 00:25
Re: Ver todos Cmd's - by yNexus - 06.03.2014, 00:39
Re: Ver todos Cmd's - by Stroon - 06.03.2014, 00:51
Re: Ver todos Cmd's - by yNexus - 06.03.2014, 01:02
Re: Ver todos Cmd's - by Stroon - 06.03.2014, 01:07
Re: Ver todos Cmd's - by yNexus - 06.03.2014, 01:23
Re: Ver todos Cmd's - by Stroon - 06.03.2014, 01:26
Re: Ver todos Cmd's - by Schocc - 06.03.2014, 01:51
Re: Ver todos Cmd's - by Input - 06.03.2014, 01:54
Re: Ver todos Cmd's - by Stroon - 06.03.2014, 02:05
Re: Ver todos Cmd's - by Schocc - 06.03.2014, 02:13
Re: Ver todos Cmd's - by Stroon - 06.03.2014, 02:14
Re: Ver todos Cmd's - by Myam - 06.03.2014, 10:23
Re: Ver todos Cmd's - by Stroon - 06.03.2014, 11:44
Re: Ver todos Cmd's - by Myam - 06.03.2014, 11:58
Re: Ver todos Cmd's - by Stroon - 06.03.2014, 12:57
Re: Ver todos Cmd's - by Myam - 06.03.2014, 13:12
Re: Ver todos Cmd's - by Stroon - 06.03.2014, 13:43

Forum Jump:


Users browsing this thread: 1 Guest(s)