Raised This Month: $ Target: $400
 0% 

[resolved]Set a hudmessage indefinitely.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
stupok
Veteran Member
Join Date: Feb 2006
Old 11-19-2006 , 14:45   [resolved]Set a hudmessage indefinitely.
Reply With Quote #1

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") }

Last edited by stupok; 11-19-2006 at 15:43.
stupok is offline
 



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 06:53.


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