Raised This Month: $ Target: $400
 0% 

Color Chat problem


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Old 10-26-2013 , 09:39   Re: Color Chat problem
Reply With Quote #5

Doesnt works too

Edit:
Maybe because iam not really doing as i showed before:
PHP Code:
#define Get_BitVar(%1,%2) (%1 & (1 << (%2 & 31)))
#define Set_BitVar(%1,%2) %1 |= (1 << (%2 & 31))
#define UnSet_BitVar(%1,%2) %1 &= ~(1 << (%2 & 31))

public plugin_init() 
{
    
register_clcmd("say""Hook_Say");
    
register_clcmd("say_team""Hook_Say");
}

public 
Hook_Say(id)
{
    static 
said[190];
    
read_args(saidcharsmax(said));
    
remove_quotes(said);
    
    if(!
said[0] || containi(said"%s%s") != 1)
        return 
PLUGIN_HANDLED;
    
    new 
name[32];
    
get_user_name(idnamecharsmax(name));
    
    
client_print_color(0Get_BitVar(g_IsZombieid) ? Red Blue"%s^4[%s] ^3%s^1: %s"
                                                    
is_user_alive(id) ? "" "^1*DEAD* "
                                                        
Get_BitVar(g_IsZombieid) ? "ZOMBIE" Get_BitVar(g_BecomeHeroid) ? "HERO" "HUMAN",
                                                                
name,
                                                                        
said);
    
    return 
PLUGIN_HANDLED_MAIN// so chat cmds gonna work.

__________________

Last edited by Jhob94; 10-26-2013 at 09:58.
Jhob94 is offline
 



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