Welcome to Open Carnage

A resource for Halo 1 modding and tech, with unique means of rewarding individual content creation and support. Have a wander to see why we're worth the time! EST. 2012

Vic Firth

Restart Mapcycle when Server is Empty Script

Hello,

 

I was wondering if someone could create a script for me that would restart a map cycle when the server is empty?

Something like: when the server is empty for X minutes, then use either the sv_map_reset, sv_mapcycle_begin, or mapcycle_begin command to reset the map.

If someone could donate their time to write this for me it would mean a lot, I know you are all great script writers on this forum and your time is valuable.

Thank you,

VF

Share this post


Link to post
Share on other sites

Members of Open Carnage never see off-site ads.

5 hours ago, Tucker933 said:

Would be worth having a release topic for this for others; I know I wanted this when I used to run a server.

 

Alright.

Tucker933 likes this

dynamic.png

Share this post


Link to post
Share on other sites

This doesn't require a script. It couldn't be easier, just use a SAPP event.

 

event_leave $pn:1 'w8 #;sv_mapcycle_begin'

where # is the desired number of seconds before restarting the mapcycle.

Edited by Sour Patch
highlighting code
Vic Firth likes this

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.