Hello!
Recently i've opened a 2nd server which is quake.
Since i've never had any server with multiple maps and/or gamemodes,
my question is if there's a way to add a gamemode voting system since
quake got 3 different gamemodes.
Basically what i'm looking for is a voting system which will show the maps
and also the gamemodes where players can vote for both.
I'm sorry if this is the wrong section but i couldn't find another place to create this thread.
Thank you for reading!
P.S I'm not good at LUA so i might not be able to understand some code (in case someone replies with it)
P.S 2 Also sorry for my English mistakes, it's not my main language! :)
i don't really understand your question, are you requesting this to be made or are you asking if its possible?
Yes its possible.
developer discussion is not a "i dont know how 2 make so make 4 me plz".
Invule, that wasn't necessary. If you say it's possible at least give some pointers, don't baselessly attack someone who hasn't even done anything wrong yet. FWIW a quick search on the wiki [i]DIDN'T[/i] find me the solution, so I would love to hear your suggestion.
[QUOTE=NeatNit;50732827]Invule, that wasn't necessary. If you say it's possible at least give some pointers, don't baselessly attack someone who hasn't even done anything wrong yet. FWIW a quick search on the wiki [i]DIDN'T[/i] find me the solution, so I would love to hear your suggestion.[/QUOTE]
You don't need the wiki to tell you how to do everything if you have the ability to break down ideas into smaller steps/coding concepts
For example with a mapvote, you want a variable that holds a map and attached to it, a number to represent how many votes it has. Obviously the best way to do this is with a table. From there, give players a way to add to the votes and after a set period of time, loop through said table and find out the biggest value
Alternatively, just find a pre-existing mapvote on the Workshop, garrysmod.org or ScriptFodder since they've been made before
I meant for setting a gamemode and changing a level from lua. I'm [i]guessing[/i] they both need to be done with console commands via [url=http://wiki.garrysmod.com/page/Global/RunConsoleCommand]RunConsoleCommand[/url], but I'm not sure. (also admittedly I cba to go in-game and check)
[QUOTE=NeatNit;50733709]I meant for setting a gamemode and changing a level from lua. I'm [i]guessing[/i] they both need to be done with console commands via [url=http://wiki.garrysmod.com/page/Global/RunConsoleCommand]RunConsoleCommand[/url], but I'm not sure. (also admittedly I cba to go in-game and check)[/QUOTE]
Correct. Create a map vote system like you normally would, but instead of having one option, have two(Map and Gamemode).
Change the gamemode, with "gamemode mode" then change the map with "changelevel level".
And yeah, the above comment was not needed, my apologies.
Sorry, you need to Log In to post a reply to this thread.