Raised This Month: $ Target: $400
 0% 

Color Chat problem


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Old 10-26-2013 , 07:46   Color Chat problem
Reply With Quote #1

Hi, iam using color chat by connormcleod.
The message isnt displayed, can someone fix it?

PHP Code:
public Hook_Say(id)
{
    if(!
is_user_connected(id))
        return 
PLUGIN_CONTINUE
        
    
static said[190]
    
read_args(saidcharsmax(said))
    
remove_quotes(said)
    
    if(
equal(said"") || containi(said"%s%s%s") != 1)
        return 
PLUGIN_HANDLED
        
    
new name[34], msg[190], prefix[10]
    
get_user_name(idnamecharsmax(name))
    
    if(
Zombie[id])
        
formatex(prefixcharsmax(prefix), "[ZOMBIE]")
    
    else
    {
        if(
Hero[id])
            
formatex(prefixcharsmax(prefix), "[HERO]")
            
        else
            
formatex(prefixcharsmax(prefix), "[HUMAN]")
    }
    
    
formatex(msgcharsmax(msg), "^4%s ^3%s^1: %s"prefixnamesaid)
        
    if(!
is_user_alive(id))
        
formatex(msgcharsmax(msg), "^1*DEAD* %s"msg)
    
    if(
Zombie[id])
        
client_print_color(0RED"%s"msg)
        
    else
        
client_print_color(0BLUE"%s"msg)
    
    return 
PLUGIN_HANDLED

__________________
Jhob94 is offline
 


Thread Tools
Display Modes

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 23:17.


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