Raised This Month: $51 Target: $400
 12% 

Help changing this map plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Gam3ronE
SourceMod Donor
Join Date: Aug 2010
Old 01-14-2011 , 16:49   Help changing this map plugin
Reply With Quote #1

The plugin is currently set, using the config which came with it - to change the server to a different map cycle after 15 minutes.

I would like your help to change this plugin so it does something different.

Note - the only thing that this plugin does not do is restart the server, and that's what I want added.

After 15 minutes of activity, the plugin should just say rcon quit in console.

That is all I want.

Can anybody modify the plugin to do this?

https://forums.alliedmods.net/showthread.php?t=77391
Gam3ronE is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 01-14-2011 , 17:00   Re: Help changing this map plugin
Reply With Quote #2

Galileo doesn't limit the time played on the map. Afaik, it uses mp_timelimit (a HL server variable) to determine how long a map is played.

Do you just want to restart the server every time the map ends? (This means it would play the same map constantly)
__________________
fysiks is offline
Gam3ronE
SourceMod Donor
Join Date: Aug 2010
Old 01-14-2011 , 17:33   Re: Help changing this map plugin
Reply With Quote #3

Quote:
Galileo doesn't limit the time played on the map. Afaik, it uses mp_timelimit (a HL server variable) to determine how long a map is played.
What? I think you misunderstand. If the server is empty, after 15 minutes the server changes to a different map. Instead of changing map, when the server is empty, after 15 minutes, I want the server to use the rcon quit command.
Gam3ronE is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 01-14-2011 , 18:05   Re: Help changing this map plugin
Reply With Quote #4

Quote:
Originally Posted by Graham View Post
What? I think you misunderstand. If the server is empty, after 15 minutes the server changes to a different map. Instead of changing map, when the server is empty, after 15 minutes, I want the server to use the rcon quit command.
Looks like you didn't write it correctly in your first post then.

Quote:
Originally Posted by Graham View Post
After 15 minutes of activity, the plugin should just say rcon quit in console.
Answer:

Change line 2809 (if using the one that you can download right now) to:

PHP Code:
server_cmd("quit");
server_exec(); 
__________________

Last edited by fysiks; 01-14-2011 at 18:12.
fysiks is offline
Gam3ronE
SourceMod Donor
Join Date: Aug 2010
Old 01-14-2011 , 18:28   Re: Help changing this map plugin
Reply With Quote #5

I realised that after I posted. Thanks. I will try it now.
Gam3ronE is offline
Gam3ronE
SourceMod Donor
Join Date: Aug 2010
Old 01-14-2011 , 19:21   Re: Help changing this map plugin
Reply With Quote #6

I think it half worked, but it didn't restart the server like rcon quit did, instead it just stopped the server, and I had to start it manually. Would a solution be this?

server_cmd("rcon_password "mypasswordhere");
server_exec();
server_cmd("rcon quit");
server_exec();

Last edited by Gam3ronE; 01-14-2011 at 19:26.
Gam3ronE is offline
Elusive138
Senior Member
Join Date: Dec 2010
Old 01-14-2011 , 19:30   Re: Help changing this map plugin
Reply With Quote #7

take the rcon out. server_cmd runs the command as if you typed it directly into the server console.

You could try "restart".
Elusive138 is offline
Gam3ronE
SourceMod Donor
Join Date: Aug 2010
Old 01-14-2011 , 19:46   Re: Help changing this map plugin
Reply With Quote #8

Also the server will restart even if there are players so I put the original files back! The point of this was to restart the server because due to a random segmentation fault the server will crash after a certain amount of time. No error logs for plugins there so no cause for it. At the moment it's put up with, restarting the server when it fails.
Gam3ronE is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 01-15-2011 , 01:27   Re: Help changing this map plugin
Reply With Quote #9

Quote:
Originally Posted by Graham View Post
I think it half worked, but it didn't restart the server like rcon quit did, instead it just stopped the server
What do you have running that will restart the server? (It doesn't do it on it's own after a Segmentation fault) Using "quit" via rcon is no different than server_cmd("quit").
__________________
fysiks is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 14:45.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode