English HC Admin Script 1.9.3 icon

550 comments
03.01.11 09:14:34 pm
like 224 like it!
72 kb, 12,237 Downloads
Happy Camper
User
Offline Off
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:
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)
More >
imageimageimageimageimage
edited 10×, last 18.12.11 10:30:16 pm
ok This file has been reviewed and approved by Starkkz (29.11.15 02:43:05 pm)

Comments

550 comments
Goto Page
To the start Previous 1 2 ... 16 17 18 ... 27 28 Next To the start

Log in!

You need to log in to be able to write comments!Log in
11.09.11 10:26:47 am
like I like it!
Up
eko24
User
Offline Off
I mean make all buldings unlimite.
You'r script can do that ?
11.09.11 09:28:07 am
Up
Happy Camper
User
Offline Off
@eko24: You can specify the game mode as a parameter in hc.MAP_LIST. See FAQ above.
11.09.11 09:01:04 am
like I like it!
Up
eko24
User
Offline Off
@HC how add construction mode if my maps begins with "ctf_" ?
02.09.11 06:04:45 pm
like I like it!
Up
G3tWr3ck3d
User
Offline Off
Danke for the answer it was very fast and it worked, and you have a nice script
02.09.11 05:26:04 pm
Up
Happy Camper
User
Offline Off
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
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
like I like it!
Up
G3tWr3ck3d
User
Offline Off
Dear @Happy Camper how i can change the supply to can be upgraded? If aniwone knows please post
02.09.11 01:55:25 pm
like I like it!
Up
Purple Crocodile
User
Offline Off
How to disable that supply destroy system?
02.09.11 02:37:33 am
like I like it!
Up
Mr_God
User
Offline Off
cool
but it lag for me
i used it and get lag
01.09.11 10:57:37 am
like I like it!
Up
AlphaCheeryo
User
Offline Off
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
edited 1×, last 01.09.11 11:12:45 am
30.08.11 07:55:11 am
Up
Happy Camper
User
Offline Off
@creederpunk: Thanks. See this post below.
30.08.11 05:22:31 am
like I like it!
Up
Fossil
User
Offline Off
how do you add more maps in map vote? nice script btw
29.08.11 09:07:38 pm
like I like it!
Up
Blunt
User
Offline Off
this is a perfekt script
27.08.11 11:00:16 am
like I like it!
Up
Infinite Rain
Reviewer
Offline Off
Ah thanks HC!
BTW Can I ask you help in lua?
27.08.11 10:48:03 am
Up
Happy Camper
User
Offline Off
@Factis699: It seems the messaging module is not activated. Try adding "messaging" to hc.MODULES in hc.conf.
27.08.11 09:05:49 am
like I like it!
Up
Infinite Rain
Reviewer
Offline Off
Error: Unknown command
26.08.11 10:05:18 pm
Up
Happy Camper
User
Offline Off
@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.
26.08.11 10:01:02 pm
like I like it!
Up
Jela331
User
Offline Off
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
26.08.11 09:35:33 pm
Up
Happy Camper
User
Offline Off
@Factis699: Thanks. Is !bc the only command that you can't execute as admin? How about !mm?
26.08.11 08:37:02 pm
like I like it!
Up
Infinite Rain
Reviewer
Offline Off
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
26.08.11 06:14:43 pm
Up
Happy Camper
User
Offline Off
@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:
Code:
1
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}
}
To the start Previous 1 2 ... 16 17 18 ... 27 28 Next To the start