Timer
I want to execute a
while(){ } but after a determined time. Like a minute or two. Is this possible? |
Re: Timer
see set_task() in funcwiki (http://www.amxmodx.org/funcwiki.php)
|
Re: Timer
I can't make it work. I want to flash the victim after 4 seconds repitedly.
PHP Code:
|
Re: Timer
You have the parameters wrong for set_task().
|
Re: Timer
I make it work. Also i make the posibiliy of making the user to set the speed and the times to repeat. But i have a problem, it doesn't works with numbers higher than 9. If i put 10, it takes 1 instead of 10
PHP Code:
|
Re: Timer
You don't have to return on Flash(), and on cmd_target(), if you're going to just use 0 just don't put it. I'm pretty sure it defaults to 0 if left blank.
|
Re: Timer
Quote:
|
Re: Timer
Oh, nevermind that part then.
|
| All times are GMT -4. The time now is 22:00. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.