View Single Post
Spartan_C001
Senior Member
Join Date: Jul 2013
Old 07-07-2013 , 05:20   Re: [Source 2009] Custom Chat Colors
Reply With Quote #503

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