AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Hud Message Remove (https://forums.alliedmods.net/showthread.php?t=276008)

siriusmd99 12-12-2015 12:40

Hud Message Remove
 
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 ?


All times are GMT -4. The time now is 18:00.

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