What happened to OC? - CLOSED Carnage?!
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

Tiddy-bits:

On 4/24/2019 at 3:10 PM, giraffe said:

You could try this.

https://pastebin.com/WU7KxffU

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


Oddly, this is familiar to you... as if from an old dream.  

Share this post


Link to post
Share on other sites
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.

Takka likes this

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
  • Recently Browsing   0 members

    No registered users viewing this page.