Raised This Month: $32 Target: $400
 8% 

Colorchat ^3 showing wrong team color


Post New Thread Reply   
 
Thread Tools Display Modes
Natsheh
Veteran Member
Join Date: Sep 2012
Old 05-15-2019 , 22:44   Re: Colorchat ^3 showing wrong team color
Reply With Quote #11

Do user team debug before sending and after sending the message
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !


Last edited by Natsheh; 05-15-2019 at 22:44.
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 05-16-2019 , 13:15   Re: Colorchat ^3 showing wrong team color
Reply With Quote #12

I think it's fixed, I recently saw that there was a plugin called amx_ejl_adminchat so I disabled it, not it works, how does one plugin interfere with another in this case? Colorchat checks user team before picking the team color..?
__________________
edon1337 is offline
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 05-16-2019 , 14:31   Re: Colorchat ^3 showing wrong team color
Reply With Quote #13

I don't think someone can give you an answer without knowing what this plugin is.
__________________








CrazY. is offline
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 05-16-2019 , 14:54   Re: Colorchat ^3 showing wrong team color
Reply With Quote #14

Quote:
Originally Posted by CrazY. View Post
I don't think someone can give you an answer without knowing what this plugin is.
I don't have the source for it but what it does is register a console command (amx_say) and print a colored message in chat, don't see how it would interfere.
__________________
edon1337 is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 05-16-2019 , 17:16   Re: Colorchat ^3 showing wrong team color
Reply With Quote #15

In order to send a colored message, the plugin needs to send a "TeamInfo" message which modifies the player's team value and then revert it back again. Probably that one wasn't doing it properly.
__________________

Last edited by OciXCrom; 05-16-2019 at 17:17.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 05-18-2019 , 11:35   Re: Colorchat ^3 showing wrong team color
Reply With Quote #16

I've tried disabling everything, there is definitely something wrong with colorchat.
__________________
edon1337 is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 05-18-2019 , 15:12   Re: Colorchat ^3 showing wrong team color
Reply With Quote #17

Try what Natsheh said - display the team name when sending a message.
__________________

Last edited by OciXCrom; 05-18-2019 at 15:12.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 05-18-2019 , 16:27   Re: Colorchat ^3 showing wrong team color
Reply With Quote #18

get_user_team returns the right team. Plugin is on top of other plugins.


PHP Code:
                                client_printidprint_chat"Team: %d"get_user_teamid ) );
                                
CC_SendMatched0id"&x04%s &x03%s&x01: &x04%s"g_iItemsPlayer_Prefix ], szNameszArgs );
                                
client_printidprint_chat"Team: %d"get_user_teamid ) );
                                return 
PLUGIN_HANDLED_MAIN
__________________

Last edited by edon1337; 05-18-2019 at 16:28.
edon1337 is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 05-18-2019 , 17:12   Re: Colorchat ^3 showing wrong team color
Reply With Quote #19

Try printing the team name, not the number.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 05-18-2019 , 17:17   Re: Colorchat ^3 showing wrong team color
Reply With Quote #20

Quote:
Originally Posted by OciXCrom View Post
Try printing the team name, not the number.
What do you mean the team name? Is there a native that returns team name as a string?
__________________
edon1337 is offline
Reply



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 12:28.


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