English How to make vote kick hc admin

3 replies
Goto Page
To the start Previous 1 Next To the start
Up
soufiane
User
Offline Off
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 , √
30.06.18 12:08:20 am
Up
LoaderFRA
User
Offline Off
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):

Code:
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):

Code:
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
30.06.18 12:41:44 am
Up
M3_Quick
User
Offline Off
∗ 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