The Dark Mafia
Would you like to react to this message? Create an account in a few clicks or log in to continue.

The Dark Mafia

TDM forums
 
HomePortalIRCSearchLatest imagesRegisterLog in

 

 ClearChat

Go down 
3 posters
AuthorMessage
[TDM]Spilot
TDM GodFather
[TDM]Spilot


Posts : 69
Join date : 2007-09-17
Age : 29
Location : better you don't know where

ClearChat Empty
PostSubject: ClearChat   ClearChat Icon_minitimeSat Oct 20, 2007 9:46 pm

you will need a /clearchat cmd in some time, i think !

so here it is Smile

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;
}
Back to top Go down
http://www.dark-mafias.co.nr/
Vortex
TDM GodFather
Vortex


Posts : 34
Join date : 2007-09-15

ClearChat Empty
PostSubject: Re: ClearChat   ClearChat Icon_minitimeSun 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
Back to top Go down
http://www.dark-mafias.co.nr
Speedy
TDM GodFather
Speedy


Posts : 36
Join date : 2007-09-15
Age : 34
Location : In your fridge, raiding your precious cheese.

ClearChat Empty
PostSubject: Re: ClearChat   ClearChat Icon_minitimeSun 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.
Back to top Go down
http://www.valhallaark.com/~speedy/
[TDM]Spilot
TDM GodFather
[TDM]Spilot


Posts : 69
Join date : 2007-09-17
Age : 29
Location : better you don't know where

ClearChat Empty
PostSubject: Re: ClearChat   ClearChat Icon_minitimeSun 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 Neutral

trying it will be better then watching it...
Back to top Go down
http://www.dark-mafias.co.nr/
Sponsored content





ClearChat Empty
PostSubject: Re: ClearChat   ClearChat Icon_minitime

Back to top Go down
 
ClearChat
Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
The Dark Mafia :: Scripts (Pwano) :: Script Showroom-
Jump to: