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

[Source 2013] Custom Chat Colors


Post New Thread Reply   
 
Thread Tools Display Modes
Onyxian
Junior Member
Join Date: Jun 2013
Old 06-30-2013 , 20:21   Re: [Source 2009] Custom Chat Colors
Reply With Quote #501

Quote:
Originally Posted by Dr. McKay View Post
Yes.
You are a damn server saver! It's fixed. Thank you so much!
Onyxian is offline
Onyxian
Junior Member
Join Date: Jun 2013
Old 06-30-2013 , 20:28   Re: [Source 2009] Custom Chat Colors
Reply With Quote #502

Ah wait there seems to be 2 tags now. E.g [Head Admin] (coloured) [Head Admin] (Normal)

Edit:

I tried to remove the bottom section thinking that was the issue but no change. Double tags.

Quote:
}
"InGame Administrators"
{
"flag" "z"
"tag" "[Head Admin]"
"tagcolor" "#5AE619"
}
"Super Moderators"
{
"flag" "o"
"tag" "[Admin]"
"tagcolor" "#5AE619"
}
"Moderators"
{
"flag" "b"
"tag" "[Mod]"
"tagcolor" "#5AE619"
}
"Donators"
{
"flag" "a"
"tag" "[VIP]"
"tagcolor" "#5AE619"
}

Last edited by Onyxian; 06-30-2013 at 20:39.
Onyxian is offline
maxolahird
Veteran Member
Join Date: Dec 2012
Old 07-04-2013 , 15:10   Re: [Source 2009] Custom Chat Colors
Reply With Quote #503

pls I have a module idea

Admin message with colors like

@@ Message

and it comes up like

[Tag] Name : Message


I would soooo love it

Last edited by maxolahird; 07-04-2013 at 15:11.
maxolahird is offline
Spartan_C001
Senior Member
Join Date: Jul 2013
Old 07-07-2013 , 05:20   Re: [Source 2009] Custom Chat Colors
Reply With Quote #504

Hello Dr. McKay,

Problem; colours persist whem players permissions are removed.

Solution; Insert "ClearValues(i);" in the for(new i = 1; i <= Maxplayers; i++) loop just before "OnClientPostAdminCheck(i);", then it resets colours before checking if new colours to apply, before, it was checking, but not doing amything due to lack of flags on that ayer.

This problem came up when testing my admin mod, colours were updated correctly when players flags were added/chamged, but colours were not defaulted when the flag was removed. My modified version is working flawlessly on my server

Last edited by Spartan_C001; 07-07-2013 at 15:12. Reason: Random words were red...
Spartan_C001 is offline
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Old 07-07-2013 , 18:42   Re: [Source 2009] Custom Chat Colors
Reply With Quote #505

Bitbucket is down for maintenance, I'll fix that once it comes back up.
__________________
Dr. McKay is offline
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Old 07-07-2013 , 21:20   Re: [Source 2009] Custom Chat Colors
Reply With Quote #506

2.4.3 is up, has the requested change.
__________________
Dr. McKay is offline
maxolahird
Veteran Member
Join Date: Dec 2012
Old 07-08-2013 , 04:33   Re: [Source 2009] Custom Chat Colors
Reply With Quote #507

Dr. McKay is my suggestion doable? it would get more attention when I message all
maxolahird is offline
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Old 07-08-2013 , 09:43   [Source 2009] Custom Chat Colors
Reply With Quote #508

Quote:
Originally Posted by maxolahird View Post
Dr. McKay is my suggestion doable? it would get more attention when I message all
Yes, I've been planning on something like that. It'll require an update to CCC, but I'll see if I can do it today.
__________________
Dr. McKay is offline
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Old 07-08-2013 , 18:14   Re: [Source 2009] Custom Chat Colors
Reply With Quote #509

Plugin updated to v3.0.0. Changes:
  • Removed deprecated natives
  • Added CCC_OnColor and CCC_OnChatMessage forwards
  • Deprecated CCC_OnTagApplied, CCC_OnNameColor, and CCC_OnChatColor forwards
  • Improved Updater integration
__________________
Dr. McKay is offline
Spartan_C001
Senior Member
Join Date: Jul 2013
Old 07-08-2013 , 18:32   Re: [Source 2009] Custom Chat Colors
Reply With Quote #510

Hello again!

in

public OnClientPostAdminCheck(client)

should this line;

LogError("Multiple flags given in section \"%s\", which is not allowed. Using first character.");

instead be;

LogError("Multiple flags given in section \"%s\", which is not allowed. Using first character.", section);

alike line;

LogError("Invalid flag given for section \"%s\", skipping", section);

nothing important, but something to note ;)

Last edited by Spartan_C001; 07-08-2013 at 18:35.
Spartan_C001 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 09:47.


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