[HELP]How to make a timer.works as per cmd
#4

Well the timer has to execute some kind of code when it finishes, and as described on the wiki, timers can only call public functions.

And as you said it should be set to false untill the race ends (the 30 seconds) so after that, i set it to true.
You can ofcourse just do whatever you want in the public function, that's just an example with a boolean, it's set to false for 30 seconds when you used the command.

Then the timer calls the public function, which sets the boolean to true, untill you use the command again.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)