set_hudmessage connected with set_task
Well, I would like to do this thing. When I set task, I want that hudmessage appears as long as task is running. But, there should be a counter which counts like 15,14,13...3,2,1 untill task finished. How can I do this?
Code is below, alter it please: Code:
Thanks. LynX |
Make a time variable, set it so that each time the task it looped it decreases it by 1.
|
You could set the hudmessage holdtime to a value like 1, and call the hudmessage to display every second until you are done. Then it would only appear until the task ends.
|
You mean:
Code:
[ edit ] I know this above probably won't work, but can some1 show me a code snippet? |
Code:
|
So, this above will work if I just put it into code, right?
|
no, because you're not setting a value to "timer" anywhere
|
Quote:
So just take out your hudmessage() functions, and replace them with the above code that he's provided. Remember to change the command. ;) |
Argh, I'm now confused... Can some1 show me the whole plugin code, without having thrashing head into monitor? ^^
If nobody won't - won't that function just loop itself? And when it runs out nothing will happen? I gotta remove some stuff too in next function! |
Code:
|
| All times are GMT -4. The time now is 09:51. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.