Author Topic: Vote commands  (Read 1907 times)

0 Members and 1 Guest are viewing this topic.

Offline bender180

  • Full Member
  • ***
  • Posts: 217
  • Karma: 42
    • Benders Villa
Vote commands
« on: October 07, 2013, 07:37:17 PM »
im having a little bit of difficulty understanding how the ulx vote commands work, Ive been looking at voting commands that come with ulx and im not sure of the structure that i need to follow to script vote commands. Any guidance at all is appreciated.
Made community pool and community bowling and for the life of me couldn't tell you why they are popular.
Also made the ttt ulx commands.

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Vote commands
« Reply #1 on: October 07, 2013, 08:00:05 PM »
Give us particulars: What do you understand and what don't you?
Experiencing God's grace one day at a time.

Offline bender180

  • Full Member
  • ***
  • Posts: 217
  • Karma: 42
    • Benders Villa
Re: Vote commands
« Reply #2 on: October 07, 2013, 08:24:02 PM »
i see that there is a couple functions like DoVote CallBack VoteDone and VoteDone(t) im assuming those are helper functions used before/during/after the vote and that my command needs to work with them. correct? I was looking at votekick as an example and there is voteKickDone and voteKickDone2 the first votekick done checks to see if the vote got the correct ratio and min votes with a convar, where can i create a convars for vote commands then it does the check the second voteKickDone if i understand it right asks for an admin approval if i understand correctly, is this needed?

Come to think of it i actually cleared alot of my own confusion typing this out, go figure....
Made community pool and community bowling and for the life of me couldn't tell you why they are popular.
Also made the ttt ulx commands.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Vote commands
« Reply #3 on: October 08, 2013, 07:14:12 PM »
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Vote commands
« Reply #4 on: October 08, 2013, 07:51:52 PM »
Sounds like my work here is done. ;)
Experiencing God's grace one day at a time.