Please add a countdown for this restart map code
I have try to study the countdown from other people code, but I find that it's not easy...So, I decided to post this code out.
I want a client_print version countdown... Please help. Thank Code:
#include <amxmodx> |
Re: Please add a countdown for this restart map code
change this:
PHP Code:
PHP Code:
|
Re: Please add a countdown for this restart map code
I mean a text countdown
10, 9 , 8 etc |
Re: Please add a countdown for this restart map code
set_task(1.0, "countdown", _, _, "b")
make an array like counttime, and use counttime--; on countdown :S |
Re: Please add a countdown for this restart map code
This is what I edit.
But this code won't stop countdown after restart once. What's wrong? Code:
#include <amxmodx> |
Re: Please add a countdown for this restart map code
PHP Code:
|
Re: Please add a countdown for this restart map code
Quote:
I edited the code, but the countdown will only show After 10 sec will restart once. The countdown text doest show 9, 8, 7... But after 10 second it still will restart |
Re: Please add a countdown for this restart map code
you define the task, the number means nothing it can be various ...
Just it needs to match the number on set_task and remove_task to remove the correct one... |
Re: Please add a countdown for this restart map code
But I when I change
Code:
"set_task(1.0, "start_countdown", _, _, _, "b")"Code:
"set_task(1.0, "start_countdown", TASKID)" |
Re: Please add a countdown for this restart map code
set_task(1.0, "start_countdown", TASKID, _, _, "b")
|
| All times are GMT -4. The time now is 02:08. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.