loop emit_sound optimize
Hello Am.
I was looking for a repeat of the same sound a number of times (5 seconds): PHP Code:
PHP Code:
Thanks in advance |
Re: loop emit_sound optimize
Code:
set_task(1.0, "countdown", 0, _, _, "a", 5)Code:
That will repeat the emit_sound 5 times, once a second. Obviously, removing the need for the timer var, all the checks for iterations, and the decrement. http://www.amxmodx.org/funcwiki.php?go=func&id=253 |
Re: loop emit_sound optimize
"player/heartbeat1" is already looping by itself, all you have to do is to send ONCE emit_soud.
For custom sounds, edit them with some sound software and add markers at begining and at end of the sounds so sounds gonna auto loop. |
| All times are GMT -4. The time now is 15:21. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.