Results 1 to 4 of 4

Thread: Call Vote (Add time)

  1. #1
    Private
    Join Date
    Oct 2013
    Posts
    48
    Thanks
    10
    Thanked 4 Times in 2 Posts

    Call Vote (Add time)

    Hey guys..
    I changed the complete callvote menu.
    No i want to add a button to vote for more time so if the vote passed the timelimit will be increased by 15min.
    I already created a function to add 15min but i have absolutly no idea how to create a vote option for it..
    Can someone please explain how to do it? I cant find anything about voting in the game scripts..

    Sorry for my bad english! :x

  2. #2
    Assadministrator kung foo man's Avatar
    Join Date
    Jun 2012
    Location
    trailerpark
    Posts
    2,011
    Thanks
    2,102
    Thanked 1,084 Times in 753 Posts
    You can hook up the "vote"-command with the ClientCommand-Callback: http://killtube.org/showthread.php?1...for-Builtin-B3!)

    When your "vote addtime" command calls the callback, you can print your own yellow text with Yes/No and time, e.g. by huds or some .menu-file. You need to replace the vote-logic also of course (by detecting the "vote yes", "vote no" binds in your script on F1/F2).

    You can check IzNoGods JumpersHeaven Mod for a live example: http://www.jumpersheaven.com/
    timescale 0.01

  3. #3
    Private
    Join Date
    Oct 2013
    Posts
    48
    Thanks
    10
    Thanked 4 Times in 2 Posts
    Is there any way to do that without libcod?

  4. #4
    Brigadier General
    Join Date
    Dec 2012
    Posts
    1,012
    Thanks
    440
    Thanked 171 Times in 132 Posts
    Make an additional menu with keyresponse. Or make a menu where people can press 1 for yes or 2 for no for example

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •