Dateien

> > CS2D > Lua Scripts > HC Admin Script 1.9.3
DateiübersichtCS2D-ÜbersichtLua Scripts-Übersicht

Englisch HC Admin Script 1.9.3 >

552 Kommentare72 kb, 13.047 Downloads

alt HC Admin Script 1.9.3

Happy Camper
User Off Offline

Update
This is just a minor update.

Features Removed:
• Upgrading supplies to super supplies is no longer blocked.

Bugs Fixed:
• Aligned "Next map" text with map name.
• Moved clock to top left corner to avoid clash with next map name.

user Starkkz hat geschrieben
This script is damaged on Counter-Strike 2D 0.1.2.6 due to the LuaJIT switch.
Check for solutions on thread cs2d [Fix] HC Admin Script


∗ ∗ ∗

This script has been used on the HC servers. It is actually a script framework which can be extended by modules. Since I have closed the servers I am releasing the script free for everyone to use.

Overview

This is a script used for administrating CS2D servers. Commands are invoked from menus or the say prompt.

Serveraction1 (default F2) - Command menu
Serveraction2 (default F3) - Moderator menu
Serveraction3 (default F4) - Map vote menu

A list of say commands can be found by selecting Help->List Say Commands from the Command menu. The commands available for a certain user depends on which category the user belongs to.

User Categories

There are four categories of registered users handled by the script:

• VIP User
- users with special privileges
• Moderator Level 1
- moderates the game
• Moderator Level 2
- moderates the game, has authority to ban users permanently
• Administrator
- administers the server and the users

Administrator is the highest level. Users at a certain level automatically has the privileges of those at a lower level.

Modules
Mehr >

Installation Instructions

Unzip the package into the CS2D folder. Note that this will overwrite your sys/servertransfer.lst and sys/lua/server.lua files!

Edit the file sys/lua/hc/data/config/users.hcu. Replace 12345 with your U.S.G.N. number:
1
12345,Adm,Your Name
If you have an old users.hcu file, use it to replace the one provided by this package.

Frequently Asked Questions (FAQ)
Mehr >
10× editiert, zuletzt 18.12.11 22:30:16
Zugelassen von Starkkz

Download Download

72 kb, 13.047 Downloads

Kommentare

552 Kommentare
Seite
Zum Anfang Vorherige 1 211 12 1327 28 Nächste Zum Anfang

Logge dich ein!

Du musst dich einloggen, um selber Kommentare verfassen zu können!Einloggen

alt

Chingy
User Off Offline

nice one
Ich mag es!

alt

lennon
User Off Offline

i use this script to today, script is like 1000 women in bikini
Ich mag es!

alt

Cereal Guy
User Off Offline

I edited but the lua crashed
Ich mag es!

alt

VenomHunter
User Off Offline

Best admin script ever.
Ich mag es!

alt

Happy Camper
User Off Offline

@user KidJony: Sorry, I can't teach you Lua here. Go to the scripts forum and search for "tutorial". You will find a few links to web sites that teach you some basic scripting.

alt

Happy Camper
User Off Offline

@user Cereal Guy: You can edit hc/modules/moderation.lua. Add a new command and register a new hook in hc.moderation.init(). Then implement the functions. Look at the other commands for some examples. Or create a new module from scratch and add it to hc.MODULES in hc/hc.conf.

To add new emotes, draw a .png file, put it in gfx/hc/emoticons. Then edit hc/modules/chat.lua. Add a pattern that matches the smiley to hc.chat.EMOTICONS and the name of the .png file without path or .png extension. See this example:
1
2
hc.chat.EMOTICONS = {
    ["^[:=8][-^o]?[)%]3>]$"] = "smiling", -- :)
The pattern is "^[:=8][-^o]?[)%]3>]$", the png file is named "smiling.png".

alt

Feel-Pain81
User Off Offline

I do that but nothing happend. I think that I don't know how to get that admin even I'm do that. Can you tell me. I don't know how do that.
Ich mag es!

alt

Cereal Guy
User Off Offline

How to add grab system to discipline menu?
And how to add new emotes?
Ich mag es!
1× editiert, zuletzt 27.06.12 12:24:48

alt

Happy Camper
User Off Offline

@user Feel-Pain81: You open sys/lua/hc/data/config/users.hcu in a text editor (e.g. Notepad) and enter:
1
83135,Adm,Jumper_Assassin

alt

Feel-Pain81
User Off Offline

How i can put my usgn ID in that users.hcu? Please can you tell how?
Ich mag es!

alt

Suprise
BANNED Off Offline

This script is very good for the server where always there 10-15 players like Fws servers.
Im sorry i dont use this for maptests but cool codes and editable ranks, also Mod1,mod2,vip,adm system what is totally good
Ich mag es!

alt

lennon
User Off Offline

Amazing
Ich mag es!

alt (:

lucaSWAT
User Off Offline

Okay Very very good script
Ich mag es!

alt

Happy Camper
User Off Offline

@user Cereal Guy:
Edit sys/lua/hc/hc.conf. Look for these lines:
1
2
hc.MODULES = {"moderation", "automod", "maps", "messaging", "chat",
"teambalance", "clock", "playerstats", "playerattribs"}
Remove "maps", so that it looks like this:
1
2
hc.MODULES = {"moderation", "automod", "messaging", "chat",
"teambalance", "clock", "playerstats", "playerattribs"}

alt

Cereal Guy
User Off Offline

How to remove map vote menu?
Ich mag es!

alt

Happy Camper
User Off Offline

@user Revolutions: You probably introduced a syntax fault. Look in the logs for some clues. If you can't figure it out, send me your hc.conf and I will take a look.

alt

Revolutions
User Off Offline

Dude i change maps and the lua don't work! =/

alt

Happy Camper
User Off Offline

@user Xanamaros: You can turn off all optional modules. That will give you almost what you want. To do that, edit sys/lua/hc/hc.conf. Look for these lines:
1
2
hc.MODULES = {"moderation", "automod", "maps", "messaging", "chat",
"teambalance", "clock", "playerstats", "playerattribs"}
Replace them with this line:
1
hc.MODULES = {"maps"}

alt

Xanamaros
User Off Offline

Nice script, is there a way to just have the map vote?

A+ Script aswell.
Ich mag es!
Zum Anfang Vorherige 1 211 12 1327 28 Nächste Zum Anfang