Raised This Month: $170 Target: $400
 42% 

Doesn't detect CC.


Post New Thread Reply   
 
Thread Tools Display Modes
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
renegade924
Junior Member
Join Date: Mar 2018
Location: Romania, Tg-Jiu
Old 05-15-2018 , 12:53   Re: Doesn't detect CC.
Reply With Quote #2

ChatColor(id, "Los !gjugadores !yactuales son: %d", get_playersnum())
renegade924 is offline
instinctpt1
Senior Member
Join Date: Dec 2016
Location: Rajasthan, India
Old 05-15-2018 , 13:52   Re: Doesn't detect CC.
Reply With Quote #3

Quote:
Originally Posted by renegade924 View Post
ChatColor(id, "Los !gjugadores !yactuales son: %d", get_playersnum())
He directly used ( ^4 and else ) so this will do nothing...

Answer :

Use only one at a time ..
U are using a include version of colorchat = > <colorchat>
and other colorchat via stock too .. use one at a time only
__________________
CSIndia The only Indian Scripters Community

Last edited by instinctpt1; 05-15-2018 at 13:53. Reason: .
instinctpt1 is offline
Relaxing
Veteran Member
Join Date: Jun 2016
Location: Catlands
Old 05-15-2018 , 13:59   Re: Doesn't detect CC.
Reply With Quote #4

I'm glad on how you managed to create(OFC from scratch) your own ColorChat.
If you continue adding: "BY NAZO" on top of all stocks and plugins, I bet you're gonna get better at scripting.
__________________
Have A Relaxing Day | Wiki
aim_relaxing
Relaxing is offline
rushnazy
Junior Member
Join Date: May 2018
Old 05-15-2018 , 16:17   Re: Doesn't detect CC.
Reply With Quote #5

Relaxing, Was that a criticism or congratulations? lmao
rushnazy is offline
Relaxing
Veteran Member
Join Date: Jun 2016
Location: Catlands
Old 05-15-2018 , 16:24   Re: Doesn't detect CC.
Reply With Quote #6

Quote:
Originally Posted by rushnazy View Post
Relaxing, Was that a criticism or congratulations? lmao
I don't know how to express because you are having trouble with a stock that you did it on your own and for me it works just fine.
__________________
Have A Relaxing Day | Wiki
aim_relaxing
Relaxing is offline
iceeedr
Senior Member
Join Date: Apr 2017
Location: Brazil
Old 05-15-2018 , 17:20   Re: Doesn't detect CC.
Reply With Quote #7

Quote:
Originally Posted by relaxing View Post
i don't know how to express because you are having trouble with a stock that you did it on your own and for me it works just fine.

hahahahahahaha
iceeedr is offline
Send a message via Skype™ to iceeedr
CrAzY MaN
Senior Member
Join Date: Mar 2017
Location: India
Old 05-15-2018 , 23:48   Re: Doesn't detect CC.
Reply With Quote #8

Once, i too had that problem.

Just change
PHP Code:
public jugadores(id

    
ChatColor(id"!yLos !gjugadores !yactuales son: %d"get_playersnum()) 

__________________

Last edited by CrAzY MaN; 05-15-2018 at 23:50.
CrAzY MaN is offline
Reply


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 05:15.


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