Raised This Month: $ Target: $400
 0% 

Colored TXT


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 03-13-2009 , 11:00   Colored TXT
Reply With Quote #1

Hi,

i know there are already more topics about this but there i cant understand anything...

so i want to print ma txt colored.

PHP Code:
#include <amxmodx>

#define PLUGIN "Commands Helper"
#define VERSION "1.0"
#define AUTHOR "One"
new ad_time

public plugin_init()
{
    
register_clcmd("say cm""CommandHelper")
    
register_clcmd("say /cm""CommandHelper")
    
ad_time register_cvar("ads_time","60");
    
set_task(float(get_pcvar_num(ad_time)), "ads");
}

public 
CommandHelper(id)
{
    
show_motd(id,"commands.txt""Commands Helper")
}  
public 
ads()
{
    
client_print(0print_chat"Say /cm to see the validable Commands to you!")    
    
set_task(float(get_pcvar_num(ad_time)), "ads")

how can i give this random colors? exam :

first time : green
secund time : blue
& ....
__________________
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:01.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode