Files

> > CS2D > Lua Scripts > XVote - Extended Vote System 1.0
Files overviewCS2D overviewLua Scripts overview

English XVote - Extended Vote System 1.0 >

37 comments6 kb, 2,212 Downloads

old XVote - Extended Vote System 1.0

Kiffer-Opa
User Off Offline

The Extended Vote System (XVote) extends the existing quite simple vote system by adding more voting options. With XVote, all humans can vote for:

• kick any player (not just from the same team)
• mapchange
• change of the game mode
• toggle Fog of War
• toggle Friendly Fire
• toggle infinite ammo
• restarting the round

All stuff is accessed by a Lua menu. By default, it can be accessed with [F4] or by saying "!xvote" (This text will be surpressed in the chat). If there is another script running which uses [F4] and shows a menu, the XVote will not appear. The serverinfo hook has a priority of -10.

Map and kick votes from the traditional vote menu and per console (cs2d cmd vote; cs2d cmd votemap) will be counted, too.

The voting rules are:
• All humans can vote anytime
• A vote option will be applied immediately if more than 50% of all human players vote for this option.

Installation:
Extract the file into the CS2D directory. Then, add this line to "sys/lua/server.lua":
1
dofile("sys/lua/xvote.lua")

Configuration:
The server can set some options in the file "sys/lua/xvoteconfig.lua". Currently, the XVote menu key and the map list can be configured. Each option has a long explantation on it.
By default, the maps listed in "sys/mapcycle.cfg" are the maps the players can vote for.
Approved by Starkkz

Download Download

6 kb, 2,212 Downloads

Comments

37 comments
Page
To the start Previous 1 2 Next To the start

Log in!

You need to log in to be able to write comments!Log in

old

D1
User Off Offline

Excellent script.

Good job.
I like it!

old

buraxia3
User Off Offline

Very usefull lua, good job. [***** Star]
I like it!

old

Apache uwu
User Off Offline

pro I also assume you disabled voting where there's like less than 2 people rite?
I like it!

old

cartel
User Off Offline

You too, so do you have? Just one person voted for the change maps, and already is changing .. I would like to in at least eight people voted for a map and not only changed the map, someone help me?
I like it!

old

palomino
User Off Offline

@Crazyx Ok, didn't know that. Thanks!:)
I like it!

old

Crazyx
User Off Offline

@Sunny Autumn: you're wrong.
For example: you're a CT and you want to vote a T which his ID is 1, then you write in console (or in chat, starting with /):
1
vote 1
It will appear:
Quote
CT_name voted T_name (...)

Although that appeared, it will have no effect, since the whole CT team can /vote the T and the guy still wont be kicked.
95% of all players don't know this, but it's the truth. So if you're a T and a CT is voting you, don't worry, it wont have effect; as long as he's not in your team.
I like it!

old

palomino
User Off Offline

"kick any player"
You can do it without the script. Just type /vote <player id>
I like it!

old

Arne
User Off Offline

A very good voting script!

old

Heartless Soldier
User Off Offline

I think it's one of most original scripts
I like it!

old

Starkkz
Moderator Off Offline

good script
I like it!

old

Crazyx
User Off Offline

Best voting script ever made. love it. Can't wait for new version!
I like it!

old

normix
User Off Offline

can you please tell me how to make it only allow votemap and votekick??

old

HaNwKs
User Off Offline

cool,nice Script
I like it!

old

DrPyromatic
User Off Offline

Sometimes every server should have that :P.
I like it!

old

Cure Pikachu
User Off Offline

My no. 1 must have for my own server!
I like it!

old

SQ
Moderator Off Offline

Probably the best voting script so far.
Thanks for work & sharing it.
I like it!
To the start Previous 1 2 Next To the start