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,157 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,157 Downloads

Comments

552 comments
Page
To the start Previous 1 221 22 2327 28 Next To the start

Log in!

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

old

Happy Camper
User Off Offline

@GaussFireArm: It's both serveractions and "say" commands. There is no real list of serveraction commands. Click the F-keys and go through the menus to see what's available. The say commands can be listed by selecting F2->Help->List Say Commands.

@Epik Max: Did you read the installation instructions in Readme.txt? You must enter a few lines into server.lua, not only dofile().

old

HeavyWings
User Off Offline

Help The lua doesnt work becuase of attempt to call nil value

old

Apache uwu
User Off Offline

A SERVER script with ONLY severaction?

nice is there a command list?
I like it!

old

Trasbueno
User Off Offline

i like this, BUT, this use all serveractions, and is somewhat difficult to use...

but have infinites configs

kkk
nice work
I like it!

old

ArChaLV
User Off Offline

hc.conf? i opened maps.lua.
I like it!

old

Happy Camper
User Off Offline

@loik: You put these lines in server.lua:

1
2
3
hc_dir = "sys/lua/hc"
hc_conf = hc_dir.."/hc.conf"
dofile("sys/lua/hc/hc.lua")

@DEad_SWAT: Did you open the right file, sys/lua/hc/hc.conf?

old

ArChaLV
User Off Offline

@Happy Camper: I can't find hc.MAP_LIST = {}!
I like it!

old I cant

loik
User Off Offline

I STILL CANT PUT IT I HAVE IT BUT IT CANT OK SO I JUST PUT IN SERVER dofile("sys/lua/hc/hc.lua") and thats it rite?
I like it!

old

uty206
User Off Offline

loik Write message

Awsome i love this script good for my server dust2 thxs

2/5?
lool

old

Happy Camper
User Off Offline

@DEad_SWAT: Open sys/lua/hc/hc.conf in a text editor. Look for hc.MAP_LIST. Enter maps like this:
1
hc.MAP_LIST = {"de_dust","de_dust2"}

The answer was already in another comment. Try to search a bit next time.

old

ArChaLV
User Off Offline

where to put maps which can vote?
in maps.lua where?
I like it!
edited 1×, last 21.05.11 07:53:53 pm

old

Happy Camper
User Off Offline

@DEad_SWAT: Check that your server.lua looks like this:

hc_dir = "sys/lua/hc"
hc_conf = hc_dir.."/hc.conf"
dofile("sys/lua/hc/hc.lua")

@loik: Check that sys/lua contains a folder named 'hc'.

old

ArChaLV
User Off Offline

Me Say In Console: LUA ERROR: sys/lua/hc/hc.lua:24: attempt to concatenate field 'DIR' (a nil value)
PLEASE HELP!
I like it!

old Help

loik
User Off Offline

I need help to install the script it says sys/lua/hc/hc.lua failed to load please help me
I like it!

old

ArChaLV
User Off Offline

i read instructions but i didnt understand enything because i speak [LV] and i little bad at english!
I like it!

old

Happy Camper
User Off Offline

@DEad_SWAT: Did you read the installation instructions in Readme.txt? If you did, do you get any error messages in the log file?

old

ArChaLV
User Off Offline

Please Help This Script Isnt working!
I like it!

old Awsome

loik
User Off Offline

Awsome i love this script good for my server dust2 thxs
I like it!

old Great!

Blacko
User Off Offline

This Script is really Great !
Awesome, nice job !
I like it!

old

ArChaLV
User Off Offline

what need to set mp_luaserver?
I like it!
To the start Previous 1 221 22 2327 28 Next To the start