Forum

> > CS2D > Scripts > How to make vote kick hc admin
Forums overviewCS2D overview Scripts overviewLog in to reply

English How to make vote kick hc admin

3 replies
To the start Previous 1 Next To the start

old How to make vote kick hc admin

badx kissed
BANNED Off Offline

Quote
Hello Guys ,

i want vote kick in hc admin but i dont knaw how to make Vote kick in hc admin I came here to in order to ask the group for How to make vote kick in hc admin,

I need it So I'm here , Help me if you want

Bye , √

old Re: How to make vote kick hc admin

LoaderFRA
User Off Offline

Quote
Use vote system of CS2D.

But, you can use vote system by say hook.
-- Source: File HC Admin

Adding new say commands

Here is an example of how to add a new moderation command. Open sys/lua/hc/modules/moderation.lua in a text editor. Look for the function hc.moderation.init(). Add this line to that function (before end):

1
hc.add_say_command("kick", hc.moderation.kick_say_command, hc.MODERATOR1, "<id>", "Kick a player.")

This adds a new say command, !kick. Players that are moderator level 1 or higher will be able to use it. When a player triggers it, the function hc.moderation.kick_say_command will be invoked. Now add that function below the init function (after end):

1
2
3
function hc.moderation.kick_say_command(p, id)
     hc.exec(p, "kick " .. id)
end

hc.exec will parse the command and log it. Now you can test the command by saying (if you are authorized):
!kick 5

old Re: How to make vote kick hc admin

cs2d_is_a_Gem
User Off Offline

Quote
∗ Another solution in this Link.
before creating a thread, you should look for another thread like it.
if you work in hc admin script, I recommend you visit this Link, You'll find a quantity of content there.
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview