Raised This Month: $12 Target: $400
 3% 

I have a problem with the chatcolor include


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
LeeanAndNeka
Senior Member
Join Date: Feb 2012
Location: Argentina ♥
Old 04-07-2012 , 20:28   I have a problem with the chatcolor include
Reply With Quote #1

Well.. first of all, sorry for my English.

My plugin isn't work simply and i don't know why :S

PHP Code:
#include <amxmodx>
#include <cstrike>
#include <amxmisc>
#include <chatcolor> 

#define PLUGIN "Textos"
#define VERSION "1.0"
#define AUTHOR "Neka"



public plugin_init() { 
    
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_clcmd("say""message_saytext"


public 
message_saytext(id

    static 
szSay[195], txt[256]  
    
read_args(szSaycharsmax(szSay))  
    
remove_quotes(szSay)  
    if(!
szSay[0])  
        return 
PLUGIN_HANDLED  
      
    
static szNombre[33]  
    
get_user_name(idszNombre32)  
     
    if(
is_user_alive(id))  
    {  
        if(
is_user_admin(id))  
        {  
            if(
get_user_flags(id) & ADMIN_IMMUNITY)  
            
formatex(txtcharsmax(txt), "^4[STAFF] ^3DontChange%s ^3BLUE: ^1%s"szNombreszSay)  
            else if(
get_user_flags(id) & ADMIN_KICK)  
            
formatex(txtcharsmax(txt), "^4[ADMIN] ^3DontChange%s ^3BLUE: ^1%s",  szNombreszSay)  
        }  
        else  
        {  
            
formatex(txtcharsmax(txt), "^3DontChange%s ^3BLUE: ^1%s",  szNombreszSay)  
        }  
    }  
    else if(!
is_user_alive(id))
    { 
        if(
is_user_admin(id))  
        {  
            if(
get_user_flags(id) & ADMIN_IMMUNITY)  
            
formatex(txtcharsmax(txt), "^4[STAFF]^3BLUE MUERTO ^3DontChange%s ^3BLUE: ^1%s"szNombreszSay)  
            else if(
get_user_flags(id) & ADMIN_KICK)  
            
formatex(txtcharsmax(txt), "^4[ADMIN] ^3BLUEMUERTO ^3DontChange%s ^3BLUE: ^1%s",  szNombreszSay)  
        }  
        else  
        {  
            
formatex(txtcharsmax(txt), "^3BLUEMUERTO ^3DontChange%s ^3BLUE: ^1%s",  szNombreszSay)  
        }  
    } 
    else if(
cs_get_user_team(id) == CS_TEAM_SPECTATOR || cs_get_user_team(id) == CS_TEAM_UNASSIGNED)
    {
        if(
is_user_admin(id)) 
         {  
             if(
get_user_flags(id) & ADMIN_IMMUNITY)  
             
formatex(txtcharsmax(txt), "^4[STAFF] ^3BLUESPEC ^3DontChange%s ^3BLUE: ^1%s"szNombreszSay)  
             else if(
get_user_flags(id) & ADMIN_KICK)  
             
formatex(txtcharsmax(txt), "^4[ADMIN] ^3BLUESPEC ^3DontChange%s ^3BLUE: ^1%s",  szNombreszSay)  
         }  
         else  
         {  
             
formatex(txtcharsmax(txt), "^3BLUESPEC ^3DontChange%s ^3BLUE: ^1%s",  szNombreszSay)  
         }  
    }
     
      
    
client_print_color(0DontChangetxt)  
    
console_print(idtxt)  
      
    return 
PLUGIN_HANDLED  


From now, thank you very much.
LeeanAndNeka is offline
Send a message via MSN to LeeanAndNeka Send a message via Skype™ to LeeanAndNeka
 


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 01:38.


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