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

Comments

552 comments
Page
To the start Previous 1 215 16 1727 28 Next To the start

Log in!

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

old

ZOMBIEKING6662002
User Off Offline

i cant find out how to use it someone help

old

SilentDash
User Off Offline

Quote
((Look to the title.TY!))

stupid? Bad Uploads you rate "Awesome" and Awesome Uploads you rate bad?!
I like it!

old Good

Verxo
User Off Offline

Sorry its good...many functions TY!
I like it!
edited 1×, last 08.10.11 09:29:21 am

old

SilentDash
User Off Offline

okay i try... it i hope it will work

Edit: Realy Awesome!
I like it!
edited 1×, last 26.09.11 02:20:07 pm

old

if
User Off Offline

@German killer
Go to the location and creat 1 document called users.
rename it with .hcu

old

SilentDash
User Off Offline

Need help.. The Server dont find sys/lua/hc/data/config/users.hcu how to make this fixed?

(sry for bad english)
I like it!

old

G3tWr3ck3d
User Off Offline

Is there a way to change the server actions something like when i press f5 the config/help/messages/online users and statics appear.
I like it!
edited 1×, last 24.09.11 04:48:08 pm

old

Happy Camper
User Off Offline

The order is fine, but there were some extra quotes. I have removed them. Try this:
1
2
3
4
5
6
7
8
9
10
hc.MAP_LIST = {{name = "de_dust", mode = hc.CONSTRUCTION},
			{name = "de_dust2", mode = hc.CONSTRUCTION},
			{name = "de_dust2_snow", mode = hc.CONSTRUCTION},
			{name = "ctf_angle", mode = hc.CONSTRUCTION},
			{name = "ctf_canyon", mode = hc.CONSTRUCTION},
			{name = "ctf_sand", mode = hc.CONSTRUCTION},
			{name = "ctf_sand 1.2", mode = hc.CONSTRUCTION},
			{name = "ctf_swamp_2.0.2", mode = hc.CONSTRUCTION},
			{name = "ctf_warehouse_v17", mode = hc.CONSTRUCTION},
			{name = "ctf_cs2dfortress", mode = hc.CONSTRUCTION}}

old Is this the right order?

G3tWr3ck3d
User Off Offline

I wanna know if this is the right order of maps or something like that cuz when i start the game the lua don't work cause i changed some maps take a look>>>>>>>>>>

code:
-- Maps to display in the map vote menu.
hc.MAP_LIST = {{name = "de_dust", mode = hc.CONSTRUCTION}, {name = "de_dust2", mode = hc.CONSTRUCTION}, {name = "de_dust2_snow", mode = hc.CONSTRUCTION}, {name = "ctf_angle", mode = hc.CONSTRUCTION"}, {name = "ctf_canyon", mode = hc.CONSTRUCTION"}, {name = "ctf_sand", mode = hc.CONSTRUCTION"}, {name = "ctf_sand 1.2", mode = hc.CONSTRUCTION"}, {name = "ctf_swamp_2.0.2", mode = hc.CONSTRUCTION"}, {name = "ctf_warehouse_v17", mode = hc.CONSTRUCTION"}, {name = "ctf_cs2dfortress", mode = hc.CONSTRUCTION}}

--
I like it!

old

Happy Camper
User Off Offline

@ZomplantJelo: The problem is that you have spaces in some of the attribute names. You need to put those names inside [""].
1
2
3
4
5
6
7
8
hc.playerattribs.ATTRIBUTES = { 
	["Police Hat"] = "police.png",
	["Terrorist Mask"] = "terrorists.png",
	Headcrab = "crab_head.png",
	Palm = "palm.png",
	["Nuke Armor"] = "toxic.png",
	None = {}
}

old

Obviously Exactly Myself
User Off Offline

Why when I added some hats (also removed some), i can't see the hats menu.

1
2
3
4
5
6
7
8
hc.playerattribs.ATTRIBUTES = {
	Police Hat = "police.png",
	Terrorist Mask = "terrorists.png",
	Headcrab = "crab_head.png",
	Palm = "palm.png",
	Nuke Armor = "toxic.png",
	None = {}
}
I like it!

old

Happy Camper
User Off Offline

@ROLF: No, I am not hosting anymore. I play sometimes on the -[IFwsI]- servers. You might catch me there.

old

-Cloud
User Off Offline

i unziped the package but my lua didnt overwrite it.

@btw nice script
I like it!

old Do you host?

G3tWr3ck3d
User Off Offline

@Happy Camper do you still hosting a server or you dont host anymore? And if you got one can you post it? I mean i wanna make a match with you :] oh and make a little place on your friends list and add me.
I like it!
edited 3×, last 16.09.11 01:54:13 pm

old

Happy Camper
User Off Offline

@ROLF: You remove "teambalance" from hc.MODULES in sys/lua/hc/hc.conf.

old How too disable the auto team balance

G3tWr3ck3d
User Off Offline

Dear @Happy Camper alright now i got another question LOL. ok so how i dissable the auto team balance from HC admin script.I wanna make it known that i know how to change the auto team balance from server settings but to make it work i have to dissable it from HC admin script too.
I like it!

old

FaqAp
User Off Offline

wow. +3000 downloads. Rly awesome
I like it!

old

Bexone
User Off Offline

Best admin script.
Too bad there is not much servers with that lua.
I like it!
To the start Previous 1 215 16 1727 28 Next To the start