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_task( 1.0, "BoostHud", id, _, _, "b" );
can_boost[id] = true;
}
public BoostHud(id)
{
set_dhudmessage( 50, 255, 50, -1.0, 0.82, 0, 0.0, 1.0, 0.0, 0.0);
show_dhudmessage( id, "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 ?