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

Doesn't detect CC.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
rushnazy
Junior Member
Join Date: May 2018
Old 05-15-2018 , 12:34   Doesn't detect CC.
Reply With Quote #1

Hello, i tried to make a Print of Chat color and i added code but in Counter-Strike 1.6 doesn't detect the Color, someone helps me?



- Now the Code:

PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>
#include <colorchat>

#define PLUGIN "[ES] Server Informacion"
#define VERSION "1.0"
#define AUTHOR "Nazy.-"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_clcmd("say /jugadores""jugadores")

}
public 
jugadores(id)
{
    
ChatColor(id"Los ^4jugadores ^1actuales son: %d"get_playersnum())
}

//--------------CHAT COLOR BY NAZY.--------------------//
stock ChatColor(const id, const input[], any:...)
{
    new 
count 1players[32]
    static 
msg[191]
    
vformat(msg190input3)
    
    
replace_all(msg190"!g""^4"// Green Color
    
replace_all(msg190"!y""^1"// Default Color
    
replace_all(msg190"!team""^3"// Team Color
    
replace_all(msg190"!team2""^0"// Team2 Color
    
    
if (idplayers[0] = id; else get_players(playerscount"ch")
    {
        for (new 
0counti++)
        {
            if (
is_user_connected(players[i]))
            {
                
message_begin(MSG_ONE_UNRELIABLEget_user_msgid("SayText"), _players[i])
                
write_byte(players[i]);
                
write_string(msg);
                
message_end();
            }
        }
    }

rushnazy 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 13:13.


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