#1

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

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
Reply
#3

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
Reply
#4

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
Reply
#5

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

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;
    } 
Reply
#7

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();
Reply
#8

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)