Forum

> > CS2D > Scripts > How to make vote kick hc admin
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch How to make vote kick hc admin

3 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt How to make vote kick hc admin

badx kissed
BANNED Off Offline

Zitieren
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 , √

alt Re: How to make vote kick hc admin

LoaderFRA
User Off Offline

Zitieren
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

alt Re: How to make vote kick hc admin

cs2d_is_a_Gem
User Off Offline

Zitieren
∗ 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.
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht