I'm trying to use set_task to run a function when a round has 8 minutes left. I am using a plugin that Connor made that returns the amount of seconds remaining in a round, but whenever I set the task, it runs immediately, even if it isn't 8:00 minutes left in the round.
PHP Code:
set_task( float( get_remaining_seconds() - ( 8 * 60 ) ), "startDodgeballDay" );
get_remaining_seconds returns seconds left in round.
8 * 60 means that when there are 8 minutes left ( 8 minutes times 60 seconds )
Any ideas as to what the problem is?
__________________