Raised This Month: $ Target: $400
 0% 

Color Chat problem


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 10-26-2013 , 09:22   Re: Color Chat problem
Reply With Quote #4

You could shorten code like this though :

PHP Code:
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(0Zombie[id] ? Red Blue"%s^4[%s] ^3%s^1: %s"
                                                    
is_user_alive(id) ? "" "^1*DEAD* "
                                                        
Zombie[id] ? "ZOMBIE" Hero[id] ? "HERO" "HUMAN",
                                                                
name,
                                                                        
said);

    return 
PLUGIN_HANDLED_MAIN// so chat cmds gonna work.

__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 10-26-2013 at 09:23.
ConnorMcLeod 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