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

Hudmessage - Color2 - Highlight


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
teh ORiON
Member
Join Date: Sep 2011
Location: Denmark
Old 08-17-2016 , 10:36   Hudmessage - Color2 - Highlight
Reply With Quote #1

Hi,

Does anyone know why color2(r2, g2, b2) aka the highlight color is hardcoded in amx's set_hudmessage?

PHP Code:
static cell AMX_NATIVE_CALL set_hudmessage(AMX *amxcell *params/* 11 param */
{
    
g_hudset.a1 0;
    
g_hudset.a2 0;
    
g_hudset.r2 255;
    
g_hudset.g2 255;
    
g_hudset.b2 250;
    
g_hudset.r1 static_cast<byte>(params[1]);
    
g_hudset.g1 static_cast<byte>(params[2]);
    
g_hudset.b1 static_cast<byte>(params[3]);
    
g_hudset.amx_ctof(params[4]);
    
g_hudset.amx_ctof(params[5]);
    
g_hudset.effect params[6];
    
g_hudset.fxTime amx_ctof(params[7]);
    
g_hudset.holdTime amx_ctof(params[8]);
    
g_hudset.fadeinTime amx_ctof(params[9]);
    
g_hudset.fadeoutTime amx_ctof(params[10]);
    
g_hudset.channel params[11];
    
    return 
1;

__________________
CTFGasGrenade :: GasThePlace(void)
teh ORiON 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:32.


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