Hello!
I'm wanting two plugins created. Also will be providing some example plugins for templates as to make the job easier for creating these requests. $20 upon completion.
-----------------------------
1)
Server auto-restarter / !restart vote / server restarts on all players DC'ing
(this one will require a simple shell script to complete)
First of all, every time the server restarts it'll execute an sh script that'll execute another sh script that executes the commands. I've seen other plugins that use the in-game server restart command and I'd rather use ./quit.sh and ./start scripts (
located in the root folder) instead.
When any restart is executed the server will: a) execute ./quit.sh, b) wait 3 seconds, c) execute start.sh. Since the server will be turned off, I'm figuring when the plugin executes script #1, that script will then execute script #2 because when the server's off the game won't be able to launch start.sh.
~All three features should be included in this one plugin~
auto-restarter: Server auto restarts at 5am every day. If players are in the server, it'll delay the restart by an hour. If there are still players in the server - another hour, etc.
!restart vote: Typing !restart calls a vote. If the vote passes the server gets restarted. See "nativevotes voting example" for template.
Restart on all players DC'ing: Restart script gets executed upon all players DC'ing. See emptyserverslots.sp for possible useful template for detecting all players DC'ing.
Ruleset:
* Spectators cannot call the !restart vote.
* (hopefully there's a way for the server to tell the difference between all players DC'ing and a temporary DC for a map change).
* auto-restarter can't restart while players are in server.
* Must use nativevotes extension (example plugin provided below):
https://forums.alliedmods.net/showthread.php?t=208008
Example plugins:
nativevotes voting example:
https://pastebin.com/9ExhvSvS
emptyserverslots.sp:
https://pastebin.com/xBqtR30a
-----------------------------
2)
!playermode vote
Players can type !playermode # (# can be a value between 1 and 4) and the "sm_cvar survivor_limit" will be changed to that value. Again would want this to use the nativevotes extension. I'm not sure if there's a way to keep from reloading the map but I'll include an example plugin for this one that does the same thing without needing to reload the map.
Ruleset:
* # can only equal 1 - 4 (no more or less)
* plugin gets disabled in versus and survival mode
* spectators cannot call the vote.
* again should use nativevotes extension
* Upon all players DC'ing from server, "sm_cvar survivor_limit" will be set to 4
* hopefully no restart of map required. See example plugin below for possible template.
Example plugins:
nativevotes example:
https://pastebin.com/9ExhvSvS
Breezy's playermode.sp script (originally configured for a hard coop custom config):
https://pastebin.com/bGfKjp3B