• Vote Kick (+ Ban)
    30 replies, posted
  • [b][u]Vote Kick (+ Ban)[/u][/b] [b]Current version:[/b] 1.1b A fairly damn complex vote kick script, which I cannot believe hasn't been made already, that allows players to begin a server-wide vote to kick (and ban) a player from the server for a set period of time. This is my second vote script, and contains some nifty features that really improve how it works, the most important ones being: [list] [*] Spam Protection - Prevents a vote being started for a set period of time after a vote request. [*] Timed Ban - Bans the player for a set period of time (in minutes) from the server, this will prevent them coming back to annoy the 'good' players even more. [*] Vote Reminder - As the vote is running, players will be reminded three times that if they want to have the player kicked, they must vote. [*] Name Change/Disconnect Protection - The vote subject can change their name and quit all they like, they'll still get banned. [*] Defined Majority - You can define the majority of the vote required to kick a player in the script's settings block, it's 80% by default. [*] Advertising - If you turn advertising on (off by default), the script will advertise the command to begin a kick vote every X seconds (you can define that, too). [*] [b]Added in 1.1:[/b] Partial Names - If you wish to begin a kick vote, you don't have to type the full name of the player. Just a lowercase few letters that are unique to that player will identify them fine. [*] [b]Added in 1.1:[/b] Multiple Triggers - Add more triggers to the list if you want to allow starting the kick vote with multiple chat triggers. [*] [b]Added in 1.1b:[/b] Admin Protection - A setting has been added in the variables block to enable/disable the kicking of admins/superadmins from the server. [/list] [u]Commands[/u] The only one you pretty much need to know is !votekick, if you leave the default options defined in the script. Remember to change the variables at the top of the script before you run it (if you want to customize it)! The following variables are available for you to change to your liking: [lua]vk.Settings.advertise = false // Advertise the script? vk.Settings.advdelay = 600 // Delay in seconds between advertising. vk.Settings.trigger = {"!votekick", "/votekick", "!vk", "/vk"} // The chat triggers to begin a vote. vk.Settings.votetrig = "!votefor" // Trigger to vote for the vote kick (used when a vote is taking place). vk.Settings.votetimer = 30 // How long players have to vote. vk.Settings.majority = 80 // The majority of votes required for a kick in percent (%). vk.Settings.adminkick = false // Allow players to start a vote against admins? vk.Settings.spamdelay = 180 // Delay between kick vote requests to prevent spam. vk.Settings.bantime = 30 // The script will ban the votekicked player for this many minutes. Set to 0 for perma-ban.[/lua] :siren: [b]DOWNLOAD v1.1b[/b] :siren: [url=http://upl.vs-hs.com/download.php?id=ffdac977a3480750b8575a6ff0308079]Download it here![/url] Extract it to your steamapps\<steam account name>\garrysmod\garrysmod\lua\autorun directory.
  • Avatar of Wildfred
  • Suggestion: [lua] vk.Settings.trigger = {"!votekick", "/votekick", "votekick"} // The chat triggers to begin a vote. [/lua] Making multiple similar triggers makes it easier for the general user. :) Also, does this work with partial names?
  • [QUOTE=Wildfred]Suggestion: [lua] vk.Settings.trigger = {"!votekick", "/votekick", "votekick"} // The chat triggers to begin a vote. [/lua] Making multiple similar triggers makes it easier for the general user. :) Also, does this work with partial names?[/QUOTE] Now it supports both partial names and multiple triggers, take a look! :v: And thanks for the suggestions.
  • Avatar of andyvincent
  • Nice work :) I modified it so that you can't vote kick admins or super admins ;) You should consider adding the same :)
  • [QUOTE=andyvincent]Nice work :) I modified it so that you can't vote kick admins or super admins ;) You should consider adding the same :)[/QUOTE] Thanks for the suggestion andyvincent, I've added this feature. If you want to turn it off, just set the following at the top of the script: [i]vk.Settings.adminkick = true[/i]. The default setting disallows players to start a vote to kick an admin/superadmin. Note: This requires the admins to be defined in the standard GM10 users.txt admin file. [url=http://upl.vs-hs.com/download.php?id=ffdac977a3480750b8575a6ff0308079]Download 1.1b[/url]
  • Avatar of KrAzY_nikomo
  • Nonimportant notice: change the "***@***.com" part to "your steam account name", when Steam was starting, your account name was same as email but not anymore.
  • [QUOTE=KrAzY_nikomo]Nonimportant notice: change the "***@***.com" part to "your steam account name", when Steam was starting, your account name was same as email but not anymore.[/QUOTE] I think the e-mail is still the folder for older Steam accounts, it still is for me. Thanks for the tip anyway.
  • Avatar of 007SILVERTOE
  • Nice but make a version were everything is gone exept the kicking and banning vote script. Not the propprotector and whatever. I already have all of that stuff.
  • Avatar of suicide_bomb
  • Do you think you could make a way for admins to veto the kick? This would prove to be quite useful.
  • Avatar of Anteep
  • [QUOTE=suicide_bomb]Do you think you could make a way for admins to veto the kick? This would prove to be quite useful.[/QUOTE] Oh lawd.
  • Avatar of elevator13
  • It would be broken because someone bumped a half-year old thread, when there are now much better admining systems out there. :silent:
  • This isn't an admin system and has been the most trustable public votekick I have used and seen in other servers. And yes a veto would be good. People get votekicked for the dumbest things. Examples: Claiming a guy's ping is lagging the server (HA) and being kicked for killing on a DM server.
  • Avatar of justin1992
  • [QUOTE=atomicspark]...and being kicked for killing on a DM server.[/QUOTE] I :lol:'d. Anyway, yes, a veto would be nice.
  • Avatar of suicide_bomb
  • Well, looks like just about everyone gets banned from fp, for legit reasons, which is odd... but anyways luk0r could you look into a veto when you get unbanned 0.o?
  • [QUOTE=Luk0r;3778134][b][u]Vote Kick (+ Ban)[/u][/b] [b]Current version:[/b] 1.1b A fairly damn complex vote kick script, which I cannot believe hasn't been made already, that allows players to begin a server-wide vote to kick (and ban) a player from the server for a set period of time. This is my second vote script, and contains some nifty features that really improve how it works, the most important ones being: [list] [*] Spam Protection - Prevents a vote being started for a set period of time after a vote request. [*] Timed Ban - Bans the player for a set period of time (in minutes) from the server, this will prevent them coming back to annoy the 'good' players even more. [*] Vote Reminder - As the vote is running, players will be reminded three times that if they want to have the player kicked, they must vote. [*] Name Change/Disconnect Protection - The vote subject can change their name and quit all they like, they'll still get banned. [*] Defined Majority - You can define the majority of the vote required to kick a player in the script's settings block, it's 80% by default. [*] Advertising - If you turn advertising on (off by default), the script will advertise the command to begin a kick vote every X seconds (you can define that, too). [*] [b]Added in 1.1:[/b] Partial Names - If you wish to begin a kick vote, you don't have to type the full name of the player. Just a lowercase few letters that are unique to that player will identify them fine. [*] [b]Added in 1.1:[/b] Multiple Triggers - Add more triggers to the list if you want to allow starting the kick vote with multiple chat triggers. [*] [b]Added in 1.1b:[/b] Admin Protection - A setting has been added in the variables block to enable/disable the kicking of admins/superadmins from the server. [/list] [u]Commands[/u] The only one you pretty much need to know is !votekick, if you leave the default options defined in the script. Remember to change the variables at the top of the script before you run it (if you want to customize it)! The following variables are available for you to change to your liking: [lua]vk.Settings.advertise = false // Advertise the script? vk.Settings.advdelay = 600 // Delay in seconds between advertising. vk.Settings.trigger = {"!votekick", "/votekick", "!vk", "/vk"} // The chat triggers to begin a vote. vk.Settings.votetrig = "!votefor" // Trigger to vote for the vote kick (used when a vote is taking place). vk.Settings.votetimer = 30 // How long players have to vote. vk.Settings.majority = 80 // The majority of votes required for a kick in percent (%). vk.Settings.adminkick = false // Allow players to start a vote against admins? vk.Settings.spamdelay = 180 // Delay between kick vote requests to prevent spam. vk.Settings.bantime = 30 // The script will ban the votekicked player for this many minutes. Set to 0 for perma-ban.[/lua] :siren: [b]DOWNLOAD v1.1b[/b] :siren: [url=http://upl.vs-hs.com/download.php?id=ffdac977a3480750b8575a6ff0308079]Download it here![/url] Extract it to your steamapps\<steam account name>\garrysmod\garrysmod\lua\autorun directory.[/QUOTE] THX. but how to make it for respected ? (Srry i 'm lua noob but i learing it :P)
  • [QUOTE=elowin;20935594]Wow, three year old bump[/QUOTE] LOL i did not see. this whas by new :P
  • Avatar of Carocrazy
  • I know this is a bump but is it still possible to get this? I can't seem to find a votekick/ban plugin for assmod and this seems like an excellent replacement.
  • Avatar of leeetdude
  • [url=http://www.garrysmod.org/downloads/?a=view&id=2468][img]http://www.garrysmod.org/img/?t=dll&id=2468[/img][/url] Works fine.