Files

> > CS2D > Lua Scripts > HC Admin Script 1.9.3
Files overviewCS2D overviewLua Scripts overview

English HC Admin Script 1.9.3 >

552 comments72 kb, 13,133 Downloads

old 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 has written
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
More >

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)
More >
edited 10×, last 18.12.11 10:30:16 pm
Approved by Starkkz

Download Download

72 kb, 13,133 Downloads

Comments

552 comments
Page
To the start Previous 1 211 12 1327 28 Next To the start

Log in!

You need to log in to be able to write comments!Log in

old

Chingy
User Off Offline

nice one
I like it!

old

lennon
User Off Offline

i use this script to today, script is like 1000 women in bikini
I like it!

old

Cereal Guy
User Off Offline

I edited but the lua crashed
I like it!

old

VenomHunter
User Off Offline

Best admin script ever.
I like it!

old

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.

old

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".

old

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.
I like it!

old

Cereal Guy
User Off Offline

How to add grab system to discipline menu?
And how to add new emotes?
I like it!
edited 1×, last 27.06.12 12:24:48 pm

old

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

old

Feel-Pain81
User Off Offline

How i can put my usgn ID in that users.hcu? Please can you tell how?
I like it!

old

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
I like it!

old

lennon
User Off Offline

Amazing
I like it!

old (:

lucaSWAT
User Off Offline

Okay Very very good script
I like it!

old

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"}

old

Cereal Guy
User Off Offline

How to remove map vote menu?
I like it!

old

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.

old

Revolutions
User Off Offline

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

old

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"}

old

Xanamaros
User Off Offline

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

A+ Script aswell.
I like it!
To the start Previous 1 211 12 1327 28 Next To the start