Delayed Changelevel to CurrentMap on Server Startup
Would like a plugin that reloads the currentmap only once (at server startup) after 30 seconds of the map being loaded. I know how to make a timer and change the level, but how do I make it run only once?
Putting this in server.cfg would make a loop. |
Re: Delayed Changelevel to CurrentMap on Server Startup
use a global or static(in change map function) bool value to save and check the state.
for example, it's false default, after the map change, set it to true. next time check if the value is true, just do nothing. |
Re: Delayed Changelevel to CurrentMap on Server Startup
Quote:
Code:
#include <sourcemod> |
All times are GMT -4. The time now is 16:53. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.