Currently the developers are putting their own money into JC2-MP to keep the servers online.

Please take a few seconds of your time and disable your AdBlock plugin for our website.

Ad revenue is not going to developers, it is used purely for covering our hosting costs.

 

You are also free to donate, which removes all ads from our website!

Patch 0.3 was just released! Full changelog here: https://t.co/4A50m6IKen

2 years ago

Advertisement
April 20, 2019, 12:22:26 pm

Author Topic: GK7_Votekick - Simple votekick script | Now with admin support [V1.1.1]  (Read 1855 times)

[GK7]Nakroma

  • Jr. Member
  • **
  • Posts: 50
    • View Profile
GK7_Votekick

GK7_Votekick Download

Features
- Highly configurable
- Admin support

Usage
Votekick someone: /votekick <playername> [reason]
Adminmanagement: /votekickadmin <del/add> <playername> <password>
Abort votekick(admin only): /votekickabort
You can find and change the password in your config (see >Configuration for more information)

Setup
1. Choose a download link
2. Download the .zip from GitHub
3. Extract the .zip
4. Copy the 'gk7_votekick' folder into your /scripts/ folder

Configure it
Go into your /scripts/gk7_votekick/server/ and open gk7_votekick.lua with notepad.
On line 5 you will find the config, it's really self explanatory.
Make sure you change your admin password!
If you want to change the commands, go to 45 and change the "/command"'s to "/yourcommand".



Changelog
24.12.13 - V1.1.1
  • fixed a breaking bug

22.12.13 - V1.1
  • added adminmanagement
  • added abort command
  • added time display

21.12.13 - V1.0
« Last Edit: December 24, 2013, 01:29:11 pm by [GK7]Nakroma »

Chemich

  • Jr. Member
  • **
  • Posts: 86
    • View Profile
Re: GK7_Votekick - Simple votekick script [V1.0]
« Reply #1 on: December 22, 2013, 04:20:15 am »
will this kick admins? I'd prefer not to be kicked off my own server because of dumb trolls lol

[GK7]Nakroma

  • Jr. Member
  • **
  • Posts: 50
    • View Profile
Re: GK7_Votekick - Simple votekick script [V1.0]
« Reply #2 on: December 22, 2013, 04:23:08 am »
will this kick admins? I'd prefer not to be kicked off my own server because of dumb trolls lol

I'll add an admin option tomorrow, thanks for your feedback.

JasonMRC

  • Donator
  • Hero Member
  • *****
  • Posts: 601
    • View Profile
Re: GK7_Votekick - Simple votekick script | Now with admin support [V1.1.1]
« Reply #3 on: January 18, 2014, 11:18:33 pm »
Very handy.

I noticed there is no help Menu entry. Can you add one? The players do not know it's there without a help menu entry.

EDIT: Here is the Help Menu Entry I made. It just goes in a help.lua in the client folder.
Code: [Select]
function ModulesLoad()
    Events:FireRegisteredEvent( "HelpAddItem",
        {
            name = "Vote Kick",
            text =
                "Use Vote-Kick to kick a disruptive player.\n"..
"To do so type: /votekick [PLAYERNAME] [Reason]\n\n"..
"Administrator Commands are:\n"..
"To stop a Vote-Kick: /votekickabort\n"..
"To add or remove an Admin: /votekickadmin [add/del] [PLAYERNAME] [Admin Password]"
        } )
end

function ModuleUnload()
    Events:FireRegisteredEvent( "HelpRemoveItem",
        {
            name = "Vote Kick"
        } )
end


Events:Subscribe("ModulesLoad", ModulesLoad)
Events:Subscribe("ModuleUnload", ModuleUnload)
« Last Edit: January 19, 2014, 02:25:16 am by JasonMRC »