PLay sound on 10 second remaining
how can i make it so that if there is 10 seconds left in the server a sound will play?
thanks |
Re: PLay sound on 10 second remaining
Quote:
Code:
set_task(10.0, "<function_name_here>", _, _, _, "d") |
Re: PLay sound on 10 second remaining
ok when i did it like this, it just keeps repeating and never stop.
why? Code:
|
Re: PLay sound on 10 second remaining
Try this :
Code:
Or with this, maybe be it works too. Code:
|
Re: PLay sound on 10 second remaining
thx for ur help but it doesnt wrk
|
Re: PLay sound on 10 second remaining
I've just tried with "set_task( 10.0, "timesounds", 0, _, _, "d" );" and it works fine.
|
Re: PLay sound on 10 second remaining
Quote:
thank u. it works!. but is there a way to only make it display only 1 time. cus that displays twice |
Re: PLay sound on 10 second remaining
It displays one time with me.
It's not possible that it displays 2 times because "d" flag means "do task on time before a map timeleft". So... I've tested again and it displays one time. Check your code. What's your full code exactly? |
Re: PLay sound on 10 second remaining
Code:
|
Re: PLay sound on 10 second remaining
Move set_task in plugin_init() .
No need to use ResetHud. |
| All times are GMT -4. The time now is 06:41. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.