The Dark Mafia

TDM forums
 
HomePortalFAQIRCSearchMemberlistUsergroupsRegisterLog in

Share | 
 

 ClearChat

Go down 
AuthorMessage
[TDM]Spilot
TDM GodFather
avatar

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

PostSubject: ClearChat   Sat 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
View user profile http://www.dark-mafias.co.nr/
Vortex
TDM GodFather
avatar

Posts : 34
Join date : 2007-09-15

PostSubject: 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
Back to top Go down
View user profile http://www.dark-mafias.co.nr
Speedy
TDM GodFather
avatar

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

PostSubject: 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.

_________________

SAMP SERVERS
85.148.169.38:#
7777 - The Dark Mafia
7776 - The Brotherhood Gang Training and War
7775 -Tuning-Raceing-Stunting
Back to top Go down
View user profile http://www.valhallaark.com/~speedy/
[TDM]Spilot
TDM GodFather
avatar

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

PostSubject: 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 Neutral

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




PostSubject: Re: ClearChat   

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: