Raised This Month: $ Target: $400
 0% 

[INC] Colors (1.0.5)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
dordnung
Veteran Member
Join Date: Apr 2010
Old 01-30-2013 , 12:59   [INC] Colors (1.1)
Reply With Quote #10

Updated Colors

I added the Tags "{darkred}", "{lime}" and "{lightred}" for Counter-Strike: Global Offensive

These tags are standalone tags, so they can be used with teamcolors!


You can use:

PHP Code:
CPrintToChatAll("{blue}Blue Part and {darkred}Darkred Part {lime}and Lime"
but not:

PHP Code:
CPrintToChatAll("{blue}Blue Part and {red}Red Part"

Also i added a stock, which checks, whether a tag is supported by the game or not

PHP Code:
stock CColorAllowed(Colors:color

And a stock, which can replace a color with another one (to replace non supported colors)

PHP Code:
stock CReplaceColor(Colors:colorColors:newColor

Example:

PHP Code:
if (!CColorAllowed(Color_Lightgreen) && CColorAllowed(Color_Lime))
    
CReplaceColor(Color_LightgreenColor_Lime); 

For the Colors:color parameters use:

PHP Code:
Color_Default
Color_Darkred
Color_Green
Color_Lightgreen
Color_Red
Color_Blue
Color_Olive
Color_Lime
Color_Lightred 
Attached Files
File Type: inc colors.inc (13.9 KB, 752 views)
__________________

Last edited by dordnung; 01-30-2013 at 16:27.
dordnung is offline
 



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 22:59.


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