SA-MP Forums Archive
Chat - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Chat (/showthread.php?tid=496168)



Chat - Clavier911 - 20.02.2014

Hello to all
I want to know how to make clear the whole cat?


Re: Chat - Tadas - 20.02.2014

I think you can make this command :
PHP код:
SendClientMessageToAll(0xDEEE20FF" ");
    
SendClientMessageToAll(0xDEEE20FF" ");
    
SendClientMessageToAll(0xDEEE20FF" ");
    
SendClientMessageToAll(0xDEEE20FF" ");
    
SendClientMessageToAll(0xDEEE20FF" ");
    
SendClientMessageToAll(0xDEEE20FF" ");
    
SendClientMessageToAll(0xDEEE20FF" ");
    
SendClientMessageToAll(0xDEEE20FF" ");
    
SendClientMessageToAll(0xDEEE20FF" ");
    
SendClientMessageToAll(0xDEEE20FF" "); 
+rep if I help you


Re: Chat - Abagail - 20.02.2014

Rather than using what Tadas did you could use:
Код:
for(new i = 0; i < 100; i ++) SendClientMessageToAll(COLOR_GREY, " ");
This clears more of the chat and takes up less room... A win win in my world.

- Abagail


Re : Chat - Clavier911 - 20.02.2014

But its not a feature that allows you to delete all of a sudden the cat with a function is no way I'm doing it and plant my server


Re: Chat - Tadas - 20.02.2014

I think it's be the same thing, try it if you don't like it delete.


Re: Chat - Tadas - 20.02.2014

Or try this :
PHP код:
    if(strcmp(cmd"/clearchat"true) == || strcmp(cmd"/cc"true) == 0)
    {
        if(
IsPlayerConnected(playerid))
        {
            if (
PlayerInfo[playerid][pAdmin] >= )
            {
                if(
PlayerInfo[playerid][pAdmin] == 0)
                {
                                for(new 
0100i++)
                
SendClientMessage(playerid,COLOR_WHITE," ");
                                 }
                
GetPlayerName(playeridsendernamesizeof(sendername));
                               
format(stringsizeof(string), "AdmCmd:%s has cleared the chat."sendername);
                
ABroadCast(COLOR_LIGHTRED,string,1);
                 return 
1;
                         
            }
            else
            {
                
SendClientMessage(playerid, -1"{F81414}[DENIED]:{FFFFFF} You are not authorized to use that command!");
              }
        }
                else
                {
            
SendClientMessage(playeridCOLOR_GRAD1"   You are not Logged in !");
                }
        return 
1;
    } 



Respuesta: Chat - OTACON - 20.02.2014

pawn Код:
#define CleanChatPlayer(%0) \
    for(new msg=0; msg<32; msg++) {SendClientMessage(%0,-1," ");}
native CleanChatPlayer(playerid);
pawn Код:
#define CleanChatAll() \
    for(new msg=0; msg<32; msg++) {SendClientMessageToAll(-1," ");}
native CleanChatPlayer();



Re : Re: Chat - Clavier911 - 20.02.2014

Quote:
Originally Posted by Abagail
Посмотреть сообщение
Rather than using what Tadas did you could use:
Код:
for(new i = 0; i < 100; i ++) SendClientMessageToAll(COLOR_GREY, " ");
This clears more of the chat and takes up less room... A win win in my world.

- Abagail
Thanks +rep