I'm trying to port one of Chronics plugins over to TFC from CS (Power up plugin).
Part of the code is round based.
Code:
public new_round()
{
for(new i=0;i<count_pups;i++)
{
if((!ents[i] || !pev_valid(ents[i])) && !task_exists(i+50))
{
spawn_pup(i+50)
}
}
}
Since TFC is not round based! how would I go about making the power ups auto respawn after a set period (cvar) lets say 3 minutes?
Thanks for help in advance.
Ancient
__________________