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

Comments

552 comments
Page
To the start Previous 1 216 17 1827 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

@eko24: No, it doesn't give you unlimited buildings. You will have to use mp_building_limit in server.cfg for that.

old

eko24
User Off Offline

I mean make all buldings unlimite.
You'r script can do that ?
I like it!

old

Happy Camper
User Off Offline

@eko24: You can specify the game mode as a parameter in hc.MAP_LIST. See FAQ above.

old

eko24
User Off Offline

@HC how add construction mode if my maps begins with "ctf_" ?
I like it!

old

G3tWr3ck3d
User Off Offline

Danke for the answer it was very fast and it worked, and you have a nice script
I like it!

old

Happy Camper
User Off Offline

To allow super supplies, open sys/lua/hc/modules/automod.lua in a text editor. Look for function hc.automod.second_hook(). Remove the following lines from that function:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
for _,supply in ipairs(hc.automod.supplies) do
	local id = supply.id

	if object(id, "exists") and hc.player_exists(supply.player) then
		if object(id, "upgrade") > 200 then
			-- CS2D bug makes supplies appear as existing and with upgrade
			-- set to a ridiculously large number, therefore this sanity
			-- check is necessary.
		elseif object(id, "upgrade") >= 20 then
			parse("killobject " .. id)
			hc.info("Supplies will be DESTROYED if they are upgraded!")
		else
			table.insert(supplies, supply)
		end
	end
end

old

Purple Crocodile
User Off Offline

How to disable that supply destroy system?
I like it!

old

Mr_God
User Off Offline

cool
but it lag for me
i used it and get lag
I like it!

old Oh no :(

AlphaCheeryo
User Off Offline

Oh no
When I add this things , {name = "300BC_Sparta2", mode = hc.TEAM DEATHMATCH}, {name = "Happy_Town EU", mode = hc.DEATHMATCH}} on Map List... It doesnt work
I like it!
edited 1×, last 01.09.11 11:12:45 am

old

Fossil
User Off Offline

how do you add more maps in map vote? nice script btw
I like it!

old

Blunt
User Off Offline

this is a perfekt script
I like it!

old

Infinite Rain
Reviewer Off Offline

Ah thanks HC!
BTW Can I ask you help in lua?
I like it!

old

Happy Camper
User Off Offline

@Factis699: It seems the messaging module is not activated. Try adding "messaging" to hc.MODULES in hc.conf.

old

Infinite Rain
Reviewer Off Offline

Error: Unknown command
I like it!

old

Happy Camper
User Off Offline

@Jela331: Oops, there is a special team balance function built into the script. You can disable it by editing hc.conf and removing "teambalance" from hc.MODULES. Thanks for pointing it out.

old

Jela331
User Off Offline

Maybe factis699 you writed !bc with capital letters

And thanks for zm mode,it works now.

BUG!
When you play zombie mode,zombie infects you and you just die and spawn as CT.
It writes ''You can't join that team right now''.
I disabled auto teambalance,but it still shows that
I like it!

old

Happy Camper
User Off Offline

@Factis699: Thanks. Is !bc the only command that you can't execute as admin? How about !mm?
To the start Previous 1 216 17 1827 28 Next To the start