[TDM]Spilot TDM GodFather
Posts : 69 Join date : 2007-09-17 Age : 29 Location : better you don't know where
| Subject: ClearChat Sat Oct 20, 2007 9:46 pm | |
| you will need a /clearchat cmd in some time, i think ! so here it is - Code:
-
if (!strcmp(cmdtext,"/clearchat")) { if (!IsPlayerAdmin(playerid)) SendClientMessage(playerid, COLOR_DIS_RED, "-- This command is for admins only! --"); else { for (new j = 1; j <= 40; j++) SendClientMessageToAll(0, "\n"); SendClientMessageToAll(COLOR_DIS_RED,"-- Chat has been cleared by an admin! --"); for (new j = 1; j <= 9; j++) SendClientMessageToAll(0, "\n"); } return true; } | |
|
Vortex TDM GodFather
Posts : 34 Join date : 2007-09-15
| Subject: Re: ClearChat Sun Oct 21, 2007 3:16 am | |
| if i did /clearchat !! the chat will clear just for me ? or for every players
Last edited by on Sun Oct 21, 2007 9:22 am; edited 1 time in total | |
|
Speedy TDM GodFather
Posts : 36 Join date : 2007-09-15 Age : 34 Location : In your fridge, raiding your precious cheese.
| Subject: Re: ClearChat Sun Oct 21, 2007 6:08 am | |
| Christ, that's redicoulously advanced.
Despite it being longer, you can easily do this by repeating 'SendClientMessageToAll' with several empty bars. (like: " ")
I've done this with my clearchat function, though I must admit it's pretty useless (how about pressing page up?) I could easily add more empty lines to actually fully empty it. | |
|
[TDM]Spilot TDM GodFather
Posts : 69 Join date : 2007-09-17 Age : 29 Location : better you don't know where
| Subject: Re: ClearChat Sun Oct 21, 2007 9:20 am | |
| will if you look at it more good, you will see it make a 50 line empty and that removes all the lins...and Page Up is useless trying it will be better then watching it... | |
|