I don't want to use set_task(0.1, ...) because I want a hudmessage on the player's screen at all times so I don't need a function to execute every tenth of a second.
All the combinations of values for set_hudmessage()'s holdtime make no difference. I don't see why the value is even included.
This plugin displays a hudmessage for a fraction of a second, every second. The holdtime is 2.0 seconds... ??? I changed fxtime to 0.0, 0.1, no difference.
Code:
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
set_task(1.0, "show_msg", 0, "", 0, "b")
}
public show_msg()
{
//set_hudmessage(red, green, blue, Float:x, Float:y, effects, Float:fxtime, Float:holdtime, Float:fadeintime, Float:fadeouttime, channel)
set_hudmessage(255, 0, 0, 0.0, 0.95, 0, 2.0, 2.0, 0.1, 0.1, -1)
show_hudmessage(0, "blahblahblah")
}