Raised This Month: $ Target: $400
 0% 

[HELP] Hud MSG Color ?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
siriusmd99
Veteran Member
Join Date: Oct 2013
Location: Republic of Moldova
Old 01-14-2016 , 09:54   Re: [HELP] Hud MSG Color ?
Reply With Quote #9

Make a global boolean for blue and red switch.
Add at the top of your plugin:

new bool:g_red

And change

PHP Code:
set_hudmessageg_current_color_redg_current_color_greeng_current_color_blue,0.150.1500.01.00.10.1
to:

PHP Code:
public show_hud_msg(){
if(
g_red){
set_hudmessage00255,0.150.1500.01.00.10.1)
g_red false;
}else{
set_hudmessage25500,0.150.1500.01.00.10.1)
g_red true;
}
show_hudmessage(0"Colours are switching...")


Now every time when you execute function it will set 1 second hud message with switched colors.
So if you want message stays 10 seconds on screen and the color switches every second from red to blue and vice versa then set task, like:

PHP Code:
set_task(1.0,"show_hud_msg",_,_,_,"a"10

Last edited by siriusmd99; 01-14-2016 at 10:01.
siriusmd99 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 09:24.


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