PDA

View Full Version : L4D Voting Manager


devicenull
11-26-2008, 17:35
This plugin will allow you to stop players from starting various vote types in L4D, while still allowing admins to.

It adds the following cvars:
l4d_vote_lobby_access
l4d_vote_difficulty_access
l4d_vote_level_access
l4d_vote_restart_access
l4d_vote_kick_access

Setting any of these to an access level (ex: "z","b") will require the user to have at least that access level before starting a vote. Setting this to an empty string "", will allow any user to start a vote.

It also adds:
l4d_vote_kick_immunity 0|1

Setting this to 1 will make vote kicks respect admin immunity, that is, users with lower access cannot kick users with higher access. Public players will not be able to kick admins.

Changelog:
0.2:
* Added logging of failed votes to the admin logs
* Added l4d_vote_kick_immunity

The JCS
11-26-2008, 17:37
Very good plugin =]
You could add options to call a vote from the server console

devicenull
11-26-2008, 17:37
Very good plugin =]
You could add options to call a vote from the server console

That's already built into the game, use the "callvote" command.

The JCS
11-26-2008, 17:40
Oh, ... =( I didn't know that. Thanks! =]

recon0
11-26-2008, 17:44
Can you add a cvar to make admins immune from votekicks?

I don't want to turn off the function entirely, but I need to be able to protect admins from it.

r5053
11-26-2008, 17:50
simple but usefull :D

devicenull
11-26-2008, 18:01
Can you add a cvar to make admins immune from votekicks?

I don't want to turn off the function entirely, but I need to be able to protect admins from it.

Like I said in IRC, it's planned implemented :)

subzero06
11-27-2008, 03:42
Cool!
my question is, Those cvars, where and how do we edit them? or do we have to put them somewhere in a file?
i just want the admin to be immune from being kicked from votes....but all other options should stay normal...

DontWannaName
11-27-2008, 03:49
Put them at the end of sourcemod.cfg or server.cfg

These change the actual game votes from the escape menu im guessing? So when someone isnt allowed to call a vote and trys to through the menu it does nothing?

subzero06
11-27-2008, 10:56
So, in my case it should be

l4d_vote_kick_immunity 1
l4d_vote_lobby_access ""
l4d_vote_difficulty_access ""
l4d_vote_level_access ""
l4d_vote_restart_access ""
l4d_vote_kick_access ""

devicenull
11-27-2008, 11:24
Put them at the end of sourcemod.cfg or server.cfg

These change the actual game votes from the escape menu im guessing? So when someone isnt allowed to call a vote and trys to through the menu it does nothing?

It gives them a message saying they do not have access.

recon0
11-27-2008, 18:29
Like I said in IRC, it's planned implemented :)
Awesome ;)

fanboi
11-28-2008, 13:58
Well, admin immunity does work but I want regular players to be able to vote kick other regular players.

How can I achieve this?

rcon l4d_vote_kick_access ""

They seem to have no access to do it.

Jokerz99
12-01-2008, 19:39
if i have
l4d_vote_kick_immunity 1
l4d_vote_kick_access ""

and my user has a flag "a" we called a vote and we where able to kick him is there something i am missing?

Badkharma
12-06-2008, 11:16
anyone else having problems with this since last patch? I have

l4d_vote_kick_immunity 1

in my sourcemod.cfg

and my admins all have b access, my access is z flag, but any player can kick anyone including me through the vote system now...

was working fine 3 days ago:cry:

crazychicken
12-06-2008, 14:59
awesome

santaclaus
12-07-2008, 05:44
votekick immunity doesn't work .

I've checked his value in console

l4d_vote_kick_immunity returned value "1"

but ppl still can kick me.

I have those flags : "bcdefghijkl"

Badkharma
12-07-2008, 14:39
Same problem here,
votekick immunity doesn't work anymore.

Have z flag, immunity 99, admin menu access, confirmed vote_kick_immunity_1 but,

still can be targeted and kicked by any user

subzero06
12-07-2008, 15:51
I'm guessing its because the new patch...this plugin needs to be updated.

devicenull
12-07-2008, 21:54
I don't have the ability to update this at the moment, and it will be a few weeks before I'm on a computer that can handle L4D. If someone can run the "listissues" command on their client when connected to a server, and paste me the output... I should be able to determine what happened during the latest update.

subzero06
12-07-2008, 23:26
I don't have the ability to update this at the moment, and it will be a few weeks before I'm on a computer that can handle L4D. If someone can run the "listissues" command on their client when connected to a server, and paste me the output... I should be able to determine what happened during the latest update.

yes here


] listissues
---Vote commands---
callvote ChangeDifficulty Impossible
callvote ChangeDifficulty Expert
callvote ChangeDifficulty Hard
callvote ChangeDifficulty Normal
callvote RestartGame
callvote Kick <userID>
callvote ChangeMission
callvote ReturnToLobby
--- End Vote commands---

devicenull
12-09-2008, 13:43
yes here


] listissues
---Vote commands---
callvote ChangeDifficulty Impossible
callvote ChangeDifficulty Expert
callvote ChangeDifficulty Hard
callvote ChangeDifficulty Normal
callvote RestartGame
callvote Kick <userID>
callvote ChangeMission
callvote ReturnToLobby
--- End Vote commands---


Looking at that, the plugin should still be working fine, unless something subtle was changed in how callvote works. I'll have to take a look once I am actually able to run the game again.

MisterCrille
12-09-2008, 14:00
I was votekicked just now on my versus server.. Damn itīs so annoying.

l4d_vote_kick_immunity 1
l4d_vote_lobby_access ""
l4d_vote_difficulty_access ""
l4d_vote_level_access ""
l4d_vote_restart_access ""
l4d_vote_kick_access ""

I have the "z" flag.


This is the most important L4D plugin IMO, hope it will work again soon:)

santaclaus
12-09-2008, 14:30
Looking at that, the plugin should still be working fine, unless something subtle was changed in how callvote works. I'll have to take a look once I am actually able to run the game again.

dunno really but during the last update they did change smth in callvote :



Fixed Infected Players melee pushing large objects to block the survivors path.
Fixed +lobby exploit.
Fixed exploit of "hugging" the Witch from behind where she can't hit you.
Fixed players not being kicked from a vote by changing their name before it succeeds.
Disabled difficulty change votes from the console in versus mode.

subzero06
12-09-2008, 14:35
dunno really but during the last update they did change smth in callvote :



i think this is the key
Fixed players not being kicked from a vote by changing their name before it succeeds.

msleeper
12-12-2008, 17:01
Any update on a fix for this? My community members are getting kinda sick of people voting them off our own servers.

subzero06
12-12-2008, 18:02
Any update on a fix for this? My community members are getting kinda sick of people voting them off our own servers.


yea...lets have patience maybe he still working on it.

santaclaus
12-14-2008, 19:34
bump.

subzero06
12-14-2008, 20:31
i think its time for an update now please.

devicenull
12-22-2008, 15:52
i think its time for an update now please.

Sure, buy me a computer that can run L4D and I'll update the plugin. I bricked my motherboard when I tried to do a BIOS update, and it's going to be awhile until the new one is shipped to me because of the holidays.

Badkharma
12-22-2008, 18:11
CrimsonGt has added admin protection to his plugin for those that need this immediately, located here:

http://forums.alliedmods.net/showthread.php?t=81357

tested and works 100%

KawMAN
01-03-2009, 13:19
pls add function writing who start a vote and how players vote

Downtown1
01-03-2009, 17:25
Would be nice if we disabled bans when someone gets vote kicked?

KawMAN
01-03-2009, 18:35
Would be nice if we disabled bans when someone gets vote kicked?
I think this can be done with
sm_cvar sv_vote_kick_ban_duration 0
but i dont test that and i dont know what means 0 in this cvar (permanent ban or off ?)

Yareking
01-04-2009, 17:39
Im very new to this and i dont understant how to use it. Do you have any link to help? i want this plugin on my server because being kick on you own server sucks...

nikow-jumper
01-07-2009, 13:14
add command sv_Infinite_ammo ?

devicenull
01-07-2009, 13:54
add command sv_Infinite_ammo ?

That makes absolutely no sense to add to this plugin.

ovakek
01-16-2009, 13:55
Hi!

How can i add the plugin cvars to my custom admin menu?
Only "l4d_vote_kick_immunity" works, the other cvars not. I think it's because sourcemod doesn't like to set or execute empty strings on the server.

My adminmenu_custom.txt looks like this:


// Custom admin menu commands.
// For more information:
//
// http://wiki.alliedmods.net/Custom_Admin_Menu_%28SourceMod%29
//
// Admins Onlyte: This file must be in Valve KeyValues format (Admins Only multiline comments)
//

"Commands"
{
"Plugin - L4d Votes"
{
"Admin Immunity"
{
"cmd" "l4d_vote_kick_immunity #1"
"admin" "sm_ban"
"execute" "server"
"1"
{
"type" "list"
"title" "Can players kick admins"
"1" "0"
"1." "Yes"
"2" "1"
"2." "No"
}
}
"Change Difficulty"
{
"cmd" "l4d_vote_difficulty_access #1"
"admin" "sm_ban"
"execute" "server"
"1"
{
"type" "list"
"title" "Change Difficulty - Access Level"
"1" ""
"1." "Everbody"
"2" "z"
"2." "Admins Only"
}
}
"Change Level"
{
"cmd" "l4d_vote_level_access #1"
"admin" "sm_ban"
"execute" "server"
"1"
{
"type" "list"
"title" "Change Level - Access Level"
"1" ""
"1." "Everbody"
"2" "z"
"2." "Admins Only"
}
}
"Restart Level"
{
"cmd" "l4d_vote_restart_access #1"
"admin" "sm_ban"
"execute" "server"
"1"
{
"type" "list"
"title" "Restart Level - Access Level"
"1" ""
"1." "Everbody"
"2" "z"
"2." "Admins Only"
}
}
"Back to Lobby"
{
"cmd" "l4d_vote_lobby_access #1"
"admin" "sm_ban"
"execute" "server"
"1"
{
"type" "list"
"title" "Back to Lobby Vote - Access Level"
"1" ""
"1." "Everbody"
"2" "z"
"2." "Admins only"
}
}
"Kick Player"
{
"cmd" "l4d_vote_kick_access #1"
"admin" "sm_ban"
"execute" "server"
"1"
{
"type" "list"
"title" "Kick Player - Access Level"
"1" ""
"1." "Everbody"
"2" "z"
"2." "Admins Only"
}
}
}
}

munchies
01-20-2009, 17:09
Hi, great plugin but want i want to ask is(noob question) where do you put the cvars?>

l4d_vote_lobby_access
l4d_vote_difficulty_access
l4d_vote_level_access
l4d_vote_restart_access
l4d_vote_kick_access

thanks

munchies
01-21-2009, 13:50
Hi, great plugin but want i want to ask is(noob question) where do you put the cvars?>

l4d_vote_lobby_access
l4d_vote_difficulty_access
l4d_vote_level_access
l4d_vote_restart_access
l4d_vote_kick_access

thanks

ok sry i found the answer

madcap
02-03-2009, 11:37
Is this plugin still maintained? I have 2 feature requests.

Veto - Could we get a command for admins that immediately overrides the current vote? I don't want to completely restrict kicking because sometimes it's needed but there are times when it's a blatantly bad vote and I want to be able to kill it right away. If there was a veto command to kill a vote I could just bind it to a key.

No kick vote for spectators -I've noticed a few people on the spectator team trying to kick non-spectators in order to steal their spot. It seems to me there is no reason why a spectator should be able to kick a player.

Thoughts?

lep
02-03-2009, 16:38
This is an updated version of the votemanager plugin.

Changes:
- Kick immunity now works and respects admin level
- Spectators cannot initiate kick votes
- Messages are printed to all clients when anyone initiates a vote
- Added new cvar "l4d_vote_log" (when set, this will log voting information to sourcemod's log files, defaults to 0)

lep
02-06-2009, 15:37
madcap and I are working on a rewrite of the votemanager plugin. Specifically, we're cleaning up the code (making it more readable) and attempting to implement a 'veto' feature. One of us will post here with a link to the new thread when we're done.

sirmoe
02-09-2009, 07:55
Still admin immunity doesnt work :(

madcap
02-09-2009, 09:20
I've submitted a new plugin to replace this one:
http://forums.alliedmods.net/showthread.php?t=85364