[INC] ColorVariables
In layman's terms:
Plugin developers are not supposed to use actual colors, but variables which can be easily set by server masters. How does it work?
Quick example: Normal: PrintToChatAll("\x02[prefix]\x01 %N gave you \x03AK-47\x01!", client) ColorVariables: CPrintToChatAll("%N gave you {highlight}AK-47{default}!", client) ColorVariables plugin example: PHP Code:
|
Re: [INC] ColorVariables
This thread needs more comments! Finally an include for colors across games, and very well written too. The only issue I had is that {teamcolor} is not in the list for Source 2009 games, I had to add it myself.
|
Re: [INC] ColorVariables
Quote:
EDIT: Oh I think I remember why there is no {teamcolor}, you can use {player CLIENT_INDEX} to get a player's team color. But anyway, I will have a look at it. |
Re: [INC] ColorVariables
Wish I knew about this include sooner, It would've been useful a few months ago. :/
Thanks for the release! :) |
Re: [INC] ColorVariables
Quote:
|
Re: [INC] ColorVariables
Just added {teamcolor} to Source2009 colors :-)
But there still is that little problem with loading foreign color config whose binary was renamed... I would like to fix that somehow, but I am very unsure how.... Any ideas, please? O:-) |
Re: [INC] ColorVariables
This include seems very useful. I will use it from now :)
|
Re: [INC] ColorVariables
Quote:
|
Re: [INC] ColorVariables
Quote:
|
Re: [INC] ColorVariables
I get this error when compiling my plugin:
Code:
//// admin-see-all-chat.sp |
All times are GMT -4. The time now is 19:56. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.