Jump to content

  • Log in with Facebook Log in with Twitter Log In with Google Log In with Steam Sign In
  • Create Account
Photo

custom vote

- - - - - custom vote

  • Please log in to reply
5 replies to this topic

#1
OFFLINE   twiti

twiti

    Member

  • Members
  • PipPip
  • 37 posts
19
On a distinguished road
Hi guys, it would be nice to have configurable custom votes in silent like it's implemented in nitmod:

..........
Custom votes are stored a file named 'votes.db'.
This file has to be located in the 'silent/database' folder of your server.
file structure:

name = //Vote name (ex: "splata" >> /callvote splata)
cmd = //Command sent to the server if the vote passes (ex: !splata)
message = //Message displayed on players screens when the vote is called.
.............
what do you think?

#2
OFFLINE   gaoesa

gaoesa

    Advanced Member

  • Management
  • PipPipPipPip
  • 4391 posts
341
Will become famous
  • LocationFinland
It's a good request. We will consider this.

#3
OFFLINE   twiti

twiti

    Member

  • Members
  • PipPip
  • 37 posts
19
On a distinguished road

It's a good request. We will consider this.

just dreaming.. 0.5.3? :D
ps: thanks a bunch for developing this amazing mod

#4
OFFLINE   Petbark

Petbark

    Advanced Member

  • Members
  • PipPipPipPip
  • 185 posts
30
Getting Better
I like the sound of this.

#5
OFFLINE   gaoesa

gaoesa

    Advanced Member

  • Management
  • PipPipPipPip
  • 4391 posts
341
Will become famous
  • LocationFinland

Implemented in the next version, with following syntax:

 

[customvote]
name     = max 15 characters long name of the vote
exec     = max 1023 characters long execute line
description = max 1023 characters long description of the vote
votetext = max 255 characters long text to be shown as the vote
passtext = max 255 characters long optional text to be shown if the vote passes
levels   = max 32 space separated optional level numbers

 

The votes are seen and executed with the /callvote command. The levels are optional and if it is left empty, players with any level can call the votes.

 

EDIT:

These blocks are defined in the shrubbot.cfg file.



#6
OFFLINE   Dookie

Dookie

    Advanced Member

  • Members
  • PipPipPipPip
  • 420 posts
55
Getting Better
  • LocationCroatia

awesome thx






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users