ULX

Author Topic: RTV Changing map/gamemode in a Gmod server  (Read 19890 times)

0 Members and 1 Guest are viewing this topic.

Offline Jeremiah767

  • Newbie
  • *
  • Posts: 7
  • Karma: 0
RTV Changing map/gamemode in a Gmod server
« on: April 03, 2010, 05:51:35 AM »
Hello, I am currently running ULX SVN with ULib in my server.  My server hosts multiple gamemodes, at present, it runs darkrp, Gmod Stranded, Trouble in Terror Town, and Taco script.  I am trying to find a system so that regular people can place a vote for a change of map, or a change of gamemode and map.  Does anyone know of a system like this that already exists, that is compatible with ULX?

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: RTV Changing map/gamemode in a Gmod server
« Reply #1 on: April 03, 2010, 10:20:54 AM »
You can vote for change of map in ULX currently, but it doesn't have a gamemode vote feature, nor do I know of one made specifically for ULX. Wouldn't be too hard to make one yourself though! ;)
Experiencing God's grace one day at a time.

Offline Jeremiah767

  • Newbie
  • *
  • Posts: 7
  • Karma: 0
Re: RTV Changing map/gamemode in a Gmod server
« Reply #2 on: April 04, 2010, 01:41:57 AM »
if I only knew the most basic things about lua perhaps.  Something I've been meaning to learn, but allright, I'll look into it.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: RTV Changing map/gamemode in a Gmod server
« Reply #3 on: April 04, 2010, 09:56:59 AM »
Jeremiah, a good place to start looking for example code (at least in relation how to do a ulx command) is ULX itself.
ULX has a "votemap" command, and a "map" command.
The map command allows for selecting a different gamemode during map change.
Find what make the map command tick in relation to changing maps at same time of gamemode, then mix them in with a new votemap command.
Don't edit the actual ULX files of course.
Gmod wiki has an article for making an addon.
If you have some base code you want help with, ask in our developers corner forum area.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Jeremiah767

  • Newbie
  • *
  • Posts: 7
  • Karma: 0
Re: RTV Changing map/gamemode in a Gmod server
« Reply #4 on: April 05, 2010, 02:38:46 AM »
Thank you very much, that sounds like a plan.  I'll post again when I have this operational.