Raised This Month: $52 Target: $400
 13% 

Solved Edit hud


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
NikodIsBack
Junior Member
Join Date: Jan 2019
Old 03-14-2019 , 11:37   Edit hud
Reply With Quote #1

Hello i have this plugin https://pastebin.com/jrAEmMfe currently this plugin has 2 colors, blue and aqua blue, I just want to keep the color in this image https://imgur.com/a/1Rg8TGA and that's blue

Last edited by NikodIsBack; 03-17-2019 at 05:48.
NikodIsBack is offline
<VeCo>
Veteran Member
Join Date: Jul 2009
Location: Bulgaria
Old 03-14-2019 , 11:43   Re: Edit hud
Reply With Quote #2

Right now it shows random color.

For that blue, replace "random(255), random(255) , random(255)" with "65, 89, 255"
__________________
<VeCo> is online now
NikodIsBack
Junior Member
Join Date: Jan 2019
Old 03-14-2019 , 14:27   Re: Edit hud
Reply With Quote #3

Code:
#include <amxmodx>



#define PLUGIN "New Plug-in"

#define VERSION "1.0"

#define AUTHOR "eDward /R/"



new site



#define TASK_INTERVAL 3.0



public plugin_init()

{

    register_plugin( PLUGIN, VERSION, AUTHOR );

    set_task( TASK_INTERVAL, "RandomHudWithRandomColors", 0, "", 0, "b"  );

    site = register_cvar("amx_site","www.laleagane.ro");

}



public RandomHudWithRandomColors()

{

    new timeleft = get_timeleft()

    new map[33]

    get_mapname(map,32)



    new forum[51]

    get_pcvar_string(site,forum,50)

    

    set_hudmessage( 65,89,255, -1.0, 0.04 )

    show_hudmessage( 0, "TimeLeft: %d:%02d | %s | Harta: %s", timeleft / 60, timeleft % 60, forum, map )

}
its not working man
NikodIsBack is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 03-14-2019 , 18:32   Re: Edit hud
Reply With Quote #4

What's not working?
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
NikodIsBack
Junior Member
Join Date: Jan 2019
Old 03-15-2019 , 06:05   Re: Edit hud
Reply With Quote #5

the blue color is not set, now it's white hud
NikodIsBack is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 03-15-2019 , 08:46   Re: Edit hud
Reply With Quote #6

That can't possibly happen by changing the color to be specifically "65, 89, 255".
__________________

Last edited by OciXCrom; 03-15-2019 at 08:47.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
<VeCo>
Veteran Member
Join Date: Jul 2009
Location: Bulgaria
Old 03-15-2019 , 11:40   Re: Edit hud
Reply With Quote #7

The default hold time duration for HUD is 12 seconds("Wtf?" yeah, i know), multiple messages overlap on top of eachother.

PHP Code:
set_hudmessage65,89,255, -1.00.04, .holdtime TASK_INTERVAL 
__________________

Last edited by <VeCo>; 03-15-2019 at 11:50.
<VeCo> is online now
NikodIsBack
Junior Member
Join Date: Jan 2019
Old 03-16-2019 , 05:05   Re: Edit hud
Reply With Quote #8

hello guys it„s still not working with this set https://i.imgur.com/krngsOT.jpg
NikodIsBack is offline
<VeCo>
Veteran Member
Join Date: Jul 2009
Location: Bulgaria
Old 03-16-2019 , 05:37   Re: Edit hud
Reply With Quote #9

works fine for me, make sure you compiled the plugin properly and replaced the .amxx after that
__________________
<VeCo> is online now
Moody92
Veteran Member
Join Date: May 2011
Location: Oman
Old 03-16-2019 , 05:49   Re: Edit hud
Reply With Quote #10

Quote:
Originally Posted by <VeCo> View Post
The default hold time duration for HUD is 12 seconds("Wtf?" yeah, i know), multiple messages overlap on top of eachother.

PHP Code:
set_hudmessage65,89,255, -1.00.04, .holdtime TASK_INTERVAL 
I don't think overlapping is the word here. It just replaces the old with the new and I think it's fine since all messages are appearing in 1 hud channel. I don't know if that causes any performance issues though.
Moody92 is offline
Reply


Thread Tools
Display Modes

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 16:35.


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