Raised This Month: $ Target: $400
 0% 

Hud Message Remove


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
siriusmd99
Veteran Member
Join Date: Oct 2013
Location: Republic of Moldova
Old 12-12-2015 , 12:40   Hud Message Remove
Reply With Quote #1

Hello. I have a problem. I made a plugin for speed boost on surf.
I put a hud message : "You can use the boost now" which means i can boost and after i hit space button it dissapears.
But the problem is that the message is blincking, i mean the green colour (which i selected) goes more lighten at some time.
I tried anything but it's impossible. I can't set permanent message because i need it dissapears on client death and when he hit space to boost.

my code :

PHP Code:
fwd_CmdStart
{

if(!
can_boost[id]) return FMRES_IGNORED

if(Button IN_JUMP && IsUserSurfing(id))
    {
remove_task(id)
set_task(7.0"BoostLock"id)
    }
}

public 
BoostLock(id)
{
  
set_task1.0"BoostHud"id__"b" );
  
can_boost[id] = true;
}
         
public 
BoostHud(id)
{
     
      
set_dhudmessage5025550, -1.00.8200.01.00.00.0);
      
show_dhudmessageid"Press SPACE to Boost");
      

I have searched similary plugins and i found soccerjam plugin which has chaning hud message (turbo mode) which has effects disabled but it's blincking like mine.
I know why it's blicking : The previous hud message is superimposed by the next one and there are like 2 hud messages at the same time and makes it lighten at specified time . But i can't get rid of it.

If it's not possible to make it like i want then how to reset hud on client so i make hud message permanent and after that i simply remove it with hud reset ?
siriusmd99 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 18:00.


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