Dookie Posted July 1, 2014 Share Posted July 1, 2014 Hi, ive heard some rumours that its possible to create a custom votes in silent mod without adding lua scripts or additional pk3 files, ive been searching a bit in wiki but coudnt find much info about it, anyone, I would need someone to assist me with making a +5 mins vote, thats the only 1 i need , anyone help? thanks Quote Link to comment Share on other sites More sharing options...
Zelly Posted July 1, 2014 Share Posted July 1, 2014 [customvote] name = The of the vote shown with the /callvote command. Maximum length 15 characters. exec = Command string to execute if the vote passes. Maximum length 1023 characters. description = Description of the vote shown with the /callvote command. Maximum length 1023 characters. votetext = The text that is show for voters. Maximum length 255 characters. passtext = Optionally, a text that is shown to players if the vote passes. levels = Optionally, admins can define the vote to be available to only specific levels. Same format that is used with the custom commands. Goes in shrubbot.cfg just like you would do a command.*Disclaimer I havent used yet so idk for sure. Quote Link to comment Share on other sites More sharing options...
Dookie Posted July 1, 2014 Author Share Posted July 1, 2014 [customvote]name = +5minsexec = ??description = Add additional 5 minutes to current timelimitvotetext = Add 5 more minutes?passtext = Vote passedlevels = What should go in exec? And btw, is that vote then shown in when you click esc and go to votes, or you must call it in a diffrent way? thanks. Quote Link to comment Share on other sites More sharing options...
Zelly Posted July 1, 2014 Share Posted July 1, 2014 I havent really expieremented with this at all so I may have to be corrected.But I dont think you could add just 5 minutes. You would need to set the timelimit to a specific number. (which obviously wouldnt be too handy)I think if you want +5 mins on the clock you might want to make a lua console command to do so.And to call this vote you would need to do /callvote addtime in the console or make a new menu pk3 with addtime in it. The Vote in shrubbot: [customvote] name = addtime exec = addtime description = Adds 5 minutes to the clock votetext = Add 5 minutes to the clock? passtext = 5 Minutes have been added to the clock levels =You would need a lua file for this still (Which originally isnt what you wanted, But I dont think there is another way) function et_ConsoleCommand( command ) if ( string.lower(command) == "addtime" ) then et.trap_Cvar_Set("timelimit",( et.trap_Cvar_Get("timelimit") + 5 ) ) end end Not 100% that is correct lol. That is just how I interpreted it to be done. Quote Link to comment Share on other sites More sharing options...
Dookie Posted July 2, 2014 Author Share Posted July 2, 2014 Ok, thx for the effort zelly! Quote Link to comment Share on other sites More sharing options...
mo_no Posted July 2, 2014 Share Posted July 2, 2014 You can try this onehttp://mygamingtalk.com/forums/files/file/37-custom-voting/ Quote Link to comment Share on other sites More sharing options...
Dookie Posted July 2, 2014 Author Share Posted July 2, 2014 Yea I know about it, but I thought it could be done now without adding additional pk3s on server. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.