[Ajuda] Comando para limpar o chat
#7

Quote:
Originally Posted by yNexus
Посмотреть сообщение
vocк tem que definir como й seu sistema de Administraзгo, nгo com esse que eu lhe enviei, talvez o seu seja diferente .

PHP код:
    if(strcmp(cmdtext,"/limparchat"true) == 0)
    {
        if(
/*Define seu admin aki*/)
        {
            for(new 
020a++)
            {
                
SendClientMessageToAll(0x33CCFFAA" ");
            }
        }
        return 
1;
    } 
Fiz isso
Код:
    if(strcmp(cmdtext,"/limparchat", true) == 0) 
    { 
		if (APlayerData[playerid][PlayerLevel] >= 1) 
        { 
               for(new a = 0; a < 20; a++) 
               { 
                  SendClientMessageToAll(0x33CCFFAA, " "); 
               } 
               return 1; 
        } 
    }
e ai estб
Код:
C:\Users\Julio\Desktop\PPC_Trucking\pawno\include\PPC_PlayerCommands.inc(1) : error 010: invalid function or declaration
C:\Users\Julio\Desktop\PPC_Trucking\pawno\include\PPC_PlayerCommands.inc(3) : error 010: invalid function or declaration
C:\Users\Julio\Desktop\PPC_Trucking\pawno\include\PPC_PlayerCommands.inc(5) : error 010: invalid function or declaration
C:\Users\Julio\Desktop\PPC_Trucking\pawno\include\PPC_PlayerCommands.inc(9) : error 010: invalid function or declaration
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Pod me ajudar a por esse aqui
Код:
COMMAND:lc(playerid, params[]) 
{ 
    if(pAdmin[playerid] >= 1)//aki esta definido para admin 1 ou maior, exemplo 1, 2, 3, 4, 5 .. se quiser alterar sу para 1 tipo de admin altere 
    {//para pAdmin[playerid] == 1) 
        new name[ 24 ], string[ 64 ]; 
        limparChat(playerid, 30); 
        format( string, sizeof(string), "chat do server foi resetado", name ); 
        GameTextForAll( string, 5000, 3 ); 
        return 1; 
    } 
} 

stock limparChat(playerid, linhas) 
{ 
       for(new b = 0; b <= linhas; b++) SendClientMessage(playerid, -1, " "); 
}
Para limpar todos ? pois a minha gm й a pcc e na pccp acho q o comando para todos igual vc mandou n vai funcionar ..
Reply


Messages In This Thread
Comando para limpar o chat - by Performancetotal - 30.01.2014, 14:13
Re: Comando - by yNexus - 30.01.2014, 14:19
Re: Comando - by Performancetotal - 30.01.2014, 14:38
Re: Comando - by yNexus - 30.01.2014, 14:40
Re: Comando - by Performancetotal - 30.01.2014, 14:42
Re: Comando - by yNexus - 30.01.2014, 14:49
Re: Comando - by Performancetotal - 30.01.2014, 14:54
Re: Comando - by lHesoyaml - 02.02.2014, 21:33
Re: Comando - by Input - 02.02.2014, 21:43
Re: Comando - by kevinho.007 - 02.02.2014, 21:50

Forum Jump:


Users browsing this thread: 4 Guest(s)