Is there any way I can detect a map reset?
I googled it and I couldn't find anything.
Depends on what you mean exactly by map reset.
You could hook into Initialize on the server side and that should be called once per map load. If your server stays on one map the whole time I.E. DarkRP then that hook should only be called when the map "resets".
If your server loads multiple maps I.E. TTT then it would be called on each map change which may not be what you want.
If you're talking about a map change:
Before the map changes: GM/ShutDown
After the map changes: GM/Initialize
If you're talking about map cleanup:
Before cleanup: GM/PreCleanupMap
After cleanup: GM/PostCleanupMap
Thanks!
Sorry, you need to Log In to post a reply to this thread.