Timers
I'm currently making a TKOTH plugin that uses a timer and i figured that I'd share the timer code because some people need help with timers. This example uses a small struct for teams and it shows how easy OOP can be.
Code:
Then you'd simply do what you need to do, i.e. Code:
|
Re: Timers
1. Might actualy use the actual team #'s. As enum's default first value is 0.
2. Not really OOP ;] (Since pawn doesnt support OOP) |
Re: Timers
Quote:
Quote:
|
Re: Timers
This would be better done with entity thinks rather than a repeatitive set_task.
|
All times are GMT -4. The time now is 22:23. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.