Raised This Month: $ Target: $400
 0% 

Colored TXT


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
minimiller
Veteran Member
Join Date: Aug 2007
Location: United Kingdom
Old 03-13-2009 , 11:05   Re: Colored TXT
Reply With Quote #2

PHP Code:
#include <amxmodx>
#include <colorchat>

#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()
{
    switch(
random_num(1,4))
    {
        case 
1//Red
        
{
            
ColorChat(0RED"Say /cm to see the validable Commands to you!");
            
set_task(float(get_pcvar_num(ad_time)), "ads");
        }
        case 
2//Green
        
{
            
ColorChat(0GREEN"Say /cm to see the validable Commands to you!");
            
set_task(float(get_pcvar_num(ad_time)), "ads");
        }
        case 
3//Blue
        
{
            
ColorChat(0BLUE"Say /cm to see the validable Commands to you!");
            
set_task(float(get_pcvar_num(ad_time)), "ads");
        }
        case 
4//Grey
        
{
            
ColorChat(0GREY"Say /cm to see the validable Commands to you!");
            
set_task(float(get_pcvar_num(ad_time)), "ads");
        }
    }

__________________
minimiller is offline
Send a message via MSN to minimiller
 



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