Raised This Month: $ Target: $400
 0% 

[Source 2009] Custom Chat Colors Menu (v2.2 - 1/27/14)


Post New Thread Reply   
 
Thread Tools Display Modes
Mitchell
~lick~
Join Date: Mar 2010
Old 11-16-2012 , 23:47   Re: [Source 2009] Custom Chat Colors Menu
Reply With Quote #31

Quote:
Originally Posted by Skippy View Post
Will this updated version have a command similar to /ccc_chat <hex value> ? (:
that is honestly should be a different plugin, since this one is based on a menu.
Mitchell is offline
Skippy
Senior Member
Join Date: Nov 2011
Old 11-16-2012 , 23:52   Re: [Source 2009] Custom Chat Colors Menu
Reply With Quote #32

Quote:
Originally Posted by Mitchell View Post
that is honestly should be a different plugin, since this one is based on a menu.
Should I request it then?
Skippy is offline
ReFlexPoison
☠☠☠
Join Date: Jul 2011
Location: ☠☠☠
Old 11-17-2012 , 00:22   Re: [Source 2009] Custom Chat Colors Menu
Reply With Quote #33

I'll supply it as an alternate download if I have extra time.
ReFlexPoison is offline
ReFlexPoison
☠☠☠
Join Date: Jul 2011
Location: ☠☠☠
Old 11-25-2012 , 23:12   Re: [Source 2009] Custom Chat Colors Menu
Reply With Quote #34

Version 1.0.1 Released

Changes:
> Added support for new Custom Chat Colors natives
> Fixed many bugs with chat colors
> Changed script file name
> Removed plugin config file
ReFlexPoison is offline
Sreaper
髪を用心
Join Date: Nov 2009
Old 11-25-2012 , 23:25   Re: [Source 2009] Custom Chat Colors Menu
Reply With Quote #35

Thanks for the update! I'm currently getting Unknown Command, sm_ccc. I didn't start getting this error until after updating the plugin.

Last edited by Sreaper; 11-25-2012 at 23:31.
Sreaper is offline
ReFlexPoison
☠☠☠
Join Date: Jul 2011
Location: ☠☠☠
Old 11-25-2012 , 23:30   Re: [Source 2009] Custom Chat Colors Menu
Reply With Quote #36

Quote:
Originally Posted by Sreaper View Post
I think you either forgot to add an SMX or the command just isn't working. Unknown Command, sm_ccc.
Make sure you deleted the older version of the plugin. cccm.smx

Also make sure to have the dependencies up to date and the needed translations installed.

Last edited by ReFlexPoison; 11-25-2012 at 23:30.
ReFlexPoison is offline
Sreaper
髪を用心
Join Date: Nov 2009
Old 11-25-2012 , 23:34   Re: [Source 2009] Custom Chat Colors Menu
Reply With Quote #37

Quote:
Originally Posted by ReFlexPoison View Post
Make sure you deleted the older version of the plugin. cccm.smx

Also make sure to have the dependencies up to date and the needed translations installed.
I turns out I deleted custom-chatcolors.smx thinking it was this plugin with an older name.
Sorry my mistake. Thank you for updating it. : )

Last edited by Sreaper; 11-25-2012 at 23:34.
Sreaper is offline
ReFlexPoison
☠☠☠
Join Date: Jul 2011
Location: ☠☠☠
Old 11-25-2012 , 23:38   Re: [Source 2009] Custom Chat Colors Menu
Reply With Quote #38

Quote:
Originally Posted by Sreaper View Post
I turns out I deleted custom-chatcolors.smx thinking it was this plugin with an older name.
Sorry my mistake. Thank you for updating it. : )
Let me know how it works
ReFlexPoison is offline
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Old 12-02-2012 , 21:56   Re: [Source 2009] Custom Chat Colors Menu
Reply With Quote #39

Looks neat.

Couple of things:
  • In the CCC_OnUserConfigLoaded forward, you're returning if the client's cookies aren't cached. I'd advise creating a timer so that the client's colors will be applied when his cookies are cached.
  • In various places, you're copying Strings to global arrays using the = operator. You should use strcopy instead to be safe.
  • In various places, you're using %t in Format. You can only use %t in functions that take a client index. I'm not 100% sure what will happen here, but I'm pretty sure it'll be translated to the last client who a message was translated to, not necessarily to the client you want to translate to. You might be able to call SetGlobalTransTarget at the beginning of your function, but I'm not sure what the outcome will be. Your best bet would be to use %T.
__________________
Dr. McKay is offline
ReFlexPoison
☠☠☠
Join Date: Jul 2011
Location: ☠☠☠
Old 12-03-2012 , 11:57   Re: [Source 2009] Custom Chat Colors Menu
Reply With Quote #40

Quote:
Originally Posted by Dr. McKay View Post
Looks neat.

Couple of things:
  • In the CCC_OnUserConfigLoaded forward, you're returning if the client's cookies aren't cached. I'd advise creating a timer so that the client's colors will be applied when his cookies are cached.
  • In various places, you're copying Strings to global arrays using the = operator. You should use strcopy instead to be safe.
  • In various places, you're using %t in Format. You can only use %t in functions that take a client index. I'm not 100% sure what will happen here, but I'm pretty sure it'll be translated to the last client who a message was translated to, not necessarily to the client you want to translate to. You might be able to call SetGlobalTransTarget at the beginning of your function, but I'm not sure what the outcome will be. Your best bet would be to use %T.
Thanks for the info, I'll get it changed up soon.
ReFlexPoison 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 04:05.


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