Raised This Month: $ Target: $400
 0% 

Timed respawn


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
ancient1
Senior Member
Join Date: Jul 2004
Location: UK
Old 09-19-2012 , 13:46   Timed respawn
Reply With Quote #1

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
__________________
ancient1 is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:13.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode