From d2380c36a9366207da0b02f951937b980300dd7a Mon Sep 17 00:00:00 2001 From: Lyberta Date: Wed, 30 Aug 2017 02:46:55 +0000 Subject: [PATCH] Lyberta created page: Custom server votes --- Custom-server-votes.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Custom-server-votes.md diff --git a/Custom-server-votes.md b/Custom-server-votes.md new file mode 100644 index 0000000..a221f98 --- /dev/null +++ b/Custom-server-votes.md @@ -0,0 +1,24 @@ +You can use `addvote` command to add custom vote commands to your server. For example, suppose you want your players to be able to vote whether they want bots or not. This can be achieved using the following code: + +``` +alias bots "minplayers 4" +addvote bots + +alias nobots "minplayers 0" +addvote nobots +``` + +Now players will be able to type `vcall bots` or `vcall nobots` which will start a vote to have those commands issued. + +Here's example that allows voting common server types assuming your `server.cfg` doesn't force them: + +``` +alias vanilla "exec defaultXonotic.cfg; exec server.cfg; endmatch" +addvote vanilla + +alias instagib "exec defaultXonotic.cfg; exec server.cfg; g_instagib 1; g_grappling_hook 1; endmatch" +addvote instagib + +alias overkill "exec defaultOverkill.cfg; exec server.cfg; endmatch" +addvote overkill +``` \ No newline at end of file -- 2.39.2