[Ajuda] Comando para limpar o chat
#3

Quote:
Originally Posted by yNexus
Посмотреть сообщение
PHP код:
COMMAND:lc(playeridparams[])
{
    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 name24 ], string64 ];
        
limparChat(playerid30);
        
formatstringsizeof(string), "chat do server foi resetado"name );
        
GameTextForAllstring5000);
        return 
1;
    }
}
stock limparChat(playeridlinhas)
{
       for(new 
0<= linhasb++) SendClientMessage(playerid, -1" ");

Bote a definiзгo de Admin do seu Servidor .

@Edit

fiz outro para limpar chat para todos, nгo sу para vocк .


PHP код:
    if(strcmp(cmdtext,"/limparchat"true) == 0)
    {
        if(
pAdmin[playerid] >= 1)
        {
               for(new 
020a++)
               {
                  
SendClientMessageToAll(0x33CCFFAA" ");
               }
               return 
1;
        }
    } 
This forum requires that you wait 240 seconds between posts. Please try again in 49 seconds.
This forum requires that you wait 240 seconds between posts. Please try again in 4 seconds.
Esse que me mandou
Код:
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, " "); 
}
Sу limpa o meu chat no caso ?
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: 2 Guest(s)