HC Admin Script 1.9.3 
550 comments 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.
Starkkz has written:
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
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:
If you have an old users.hcu file, use it to replace the one provided by this package.
Frequently Asked Questions (FAQ)
This is just a minor update.
Features Removed:

Bugs Fixed:



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





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:

- users with special privileges

- moderates the game

- moderates the game, has authority to ban users permanently

- 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
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:
Code:
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)
edited 10×, last 18.12.11 10:30:16 pm

Comments
550 commentsLog in!
You need to log in to be able to write comments!Log in
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:
Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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
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
02.09.11 02:06:25 pm

Dear @Happy Camper
how i can change the supply to can be upgraded? If aniwone knows please post


01.09.11 10:57:37 am

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

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

edited 1×, last 01.09.11 11:12:45 am
@Factis699: It seems the messaging module is not activated. Try adding "messaging" to hc.MODULES in hc.conf.
@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.

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

Nice script HC! Btw I got problem
Im admin and when i try to make !bc <text>
It told that the command is not exists =(
Glitches:
Map vote:
1: Next map in [X] Rounds Map name
map name is little bit downer than Next map
2:When clock and vote map is turned on
map name and clock will be mixed
Im admin and when i try to make !bc <text>
It told that the command is not exists =(
Glitches:
Map vote:
1: Next map in [X] Rounds Map name
map name is little bit downer than Next map
2:When clock and vote map is turned on
map name and clock will be mixed
@Jela331:
I just tried zombie mode and it works for me. You must be very careful when entering maps in hc.conf. It's pure Lua code so the syntax is strict. Here is an example:
I just tried zombie mode and it works for me. You must be very careful when entering maps in hc.conf. It's pure Lua code so the syntax is strict. Here is an example:
Code:
1
2
3
4
5
2
3
4
5
hc.MAP_LIST = {
{name = "ctf_angle", mode = hc.CONSTRUCTION},
{name = "de_dust", mode = hc.NORMAL},
{name = "zm_street", mode = hc.ZOMBIES}
}
{name = "ctf_angle", mode = hc.CONSTRUCTION},
{name = "de_dust", mode = hc.NORMAL},
{name = "zm_street", mode = hc.ZOMBIES}
}