If you made your life harder and cached get_user_flags, then do it properly. You should also hook client_infochanged forward and update
gb_AdminPlayer correctly.
gs_CycCustomChatname [ index ] = "" instead of this you should use EOS(which is '\0', \ being the default escape character in pawn, unless #pragma ctrlchar alter it). EOS is end of string, so the null terminator.
PHP Code:
if ( equal ( gs_CycCustomChatname [ index ], "" ) != 1 )
Also instead of this just check if != EOS.
In
change_custom_chatname static is misused.
PHP Code:
if ( chatname_len > ( charsmax ( chatname ) - 1 ) )
That makes no sense.
Also, if you want to copy a string into another, use copy.
That's enough for now. Unapproved, PM me when you will make some changes.
__________________