Raised This Month: $ Target: $400
 0% 

Message color


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
DON KHAN 1
Senior Member
Join Date: Mar 2019
Location: Pakistan
Old 09-04-2019 , 11:37   Re: Message color
Reply With Quote #1

another example is using colors by const them with HUD_COLOR.

put this
PHP Code:
new const HUD_COLOR[3] = {255 0
then use this code.

PHP Code:
team cs_get_user_team(plr);
            if( 
team == HNS_TEAM_SEEKER || team == HNS_TEAM_HIDER )
            {
                if( 
team == HNS_TEAM_SEEKER && g_bAlive[plr] )
                {
                    
make_ScreenFade(plr0.00.0000255);
                    
                    
cs_reset_user_maxspeed(plr);
                    
//set_pev(plr, pev_flags, pev(plr, pev_flags) & ~FL_FROZEN);
                
}
                
                
set_hudmessage(HUD_COLOR[0], HUD_COLOR[1], HUD_COLOR[2], -1.0, -1.000.03.00.10.11);
                
show_hudmessage(plr"Ready Or Not, Here We Come!");
                
                
param[0] = _:team;
                
taskGiveWeapons(paramplr TASK_ID_GIVEWEAPONS
this will help u for random color hud message.
__________________
Facebook
My YouTube
Ro{Y}aL WarLanD CommuniTy
Selling Zombie CSO 4.3 Money System Mod

Last edited by DON KHAN 1; 09-04-2019 at 11:38.
DON KHAN 1 is offline
LearninG
Senior Member
Join Date: Apr 2019
Location: Iran
Old 09-04-2019 , 11:55   Re: Message color
Reply With Quote #2

Quote:
Originally Posted by DON KHAN 1 View Post
this will help u for random color hud message.
how is this supposed to make random colors ?
Code:
new const HUD_COLOR[3] = {0 , 255 , 0}
LearninG is offline
thEsp
BANNED
Join Date: Aug 2017
Old 09-04-2019 , 12:11   Re: Message color
Reply With Quote #3

Quote:
Originally Posted by LearninG View Post
how is this supposed to make random colors ?
Code:
new const HUD_COLOR[3] = {0 , 255 , 0}
By rote.
Quote:
Originally Posted by DON KHAN 1 View Post
another example is using colors by const them with HUD_COLOR.
What "const them" means tho?

Last edited by thEsp; 09-04-2019 at 12:13.
thEsp is offline
I AM NOOB
Junior Member
Join Date: May 2019
Location: NEPAL BOARDER
Old 09-04-2019 , 12:20   Re: Message color
Reply With Quote #4

Quote:
Originally Posted by DON KHAN 1 View Post
this will help u for random color hud message.
For random number why don't use random_num(0,255)
__________________
"Never think yourself as successfull ror DON because "
DON stands for DONKEY OF NATION

GIVE RESPECT = TAKE RESPECT

ONLY SIGNATURE , NO PERSONAL
I AM NOOB is offline
LearninG
Senior Member
Join Date: Apr 2019
Location: Iran
Old 09-04-2019 , 12:50   Re: Message color
Reply With Quote #5

Quote:
Originally Posted by thEsp View Post
By rote.
I didn't understand , sorry.


Quote:
Originally Posted by I AM NOOB View Post
For random number why don't use random_num(0,255)
why not ? :
Code:
random(255)


btw i see somewhere
Code:
random(256)
which is right ?
LearninG 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 17:28.


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