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

Comments

552 comments
Page
To the start Previous 1 220 21 2227 28 Next To the start

Log in!

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

old

MrShock
User Off Offline

C-c-c-c-Combo Breaker. This Script is damn awesome. Thanks for that.
I like it!
edited 2×, last 27.05.11 01:06:31 pm

old Dude

loik
User Off Offline

Dude you know when you open Counter-Strike 2D folder it says sys then lua...where it says lua theres alot of notes copy and paste the note that says server so we can see how to put in "server.lua"
I like it!

old

Itibere10
User Off Offline

Very good!
Very work man! √
Congratulations!!
I like it!

old

EngiN33R
Moderator Off Offline

@DEad_SWAT

Happy Camper has written
Updated
This is a new version which is easier to install. See installation instructions at the end of the description. The only new feature is the possibility to specify the game mode for each map.
I like it!

old

ArChaLV
User Off Offline

@Happy Camper: What changed in this version?
I like it!

old

Happy Camper
User Off Offline

@Epik Max: Download the new version. It's simpler to install.

@DEad_SWAT: Look at the comments on page 4. There is a description how to add attributes.

old TY

ImmortaL SkuLL
User Off Offline

I give you 5/5.It works great.Thanks to the crator of the script and to DEad_SWAT.
I like it!

old

ArChaLV
User Off Offline

@Happy Camper: How i can add more attributes?
I like it!

old

PeterToman
COMMUNITY BANNED Off Offline

it's awesome, but I don't play this that much.
I like it!

old

ArChaLV
User Off Offline

Happy Camper How I can make a command like: when i say !build then where i click there he makes turret 3:but when i say: !build stop then when i click he don't makes turret 3? plz help
I like it!

old

HeavyWings
User Off Offline

Happy Camper its still not working. please make youtube video

old Ahhh....

ImmortaL SkuLL
User Off Offline

Ah.HELP ME.I did anything to make this work.I followed the instructions and when i host game and enter server...NOTHING
I like it!

old Yes i did

loik
User Off Offline

Yes i did but it still wont open lua i need help can you post a video on how to do it in www.youtube.com
I like it!

old

Happy Camper
User Off Offline

@Epik Max: I have copied the installation instructions from Readme.txt to the description above. I hope everything will be clearer now.

@DEad_SWAT: Adding a new command is not obvious. I am sorry, but I don't have time to teach you how the framework works. I suggest that you have a look at sys/lua/hc/modules/moderation.lua. There is the rcon command which is a good example of a simple command.

old

HeavyWings
User Off Offline

Happy camper i dont get a thing in readme full of squares anyways ill try to understand (ps i put the other things sill not working :*( )

old

ArChaLV
User Off Offline

@Happy Camper: I want to add build help script but it's not working i say like the build help script said !build 12 but there say !build unknown commands. PLZ HELP!
I like it!

old

Apache uwu
User Off Offline

Oh cool I guess I copied ur system lool

The syntax for my script is

cmd symbol(;)cmd name(;)auth required(;)wait time(;)args(;)checks(;)check1(;)error1(;)action(;)syntax (;)hide/show/on

Cool but ur script is faster and more efficient x.x
I like it!

old

Happy Camper
User Off Offline

@GaussFireArm: Search for hc.add_say_command. That's the function you use for adding more commands. You specify the:

* command itself
* a callback function that will be invoked when the command is triggered
* the user level needed in order to be authorized to run the command
* usage string
* help message
* ...

For a simple example, look in modules/moderation.lua (rcon).

old

Apache uwu
User Off Offline

this is pro but I'm searching the lua for traces of lua like @kick, !broadcast, !mn, etc and I'm unsure where to look, this would help if I want to add more cmds
I like it!

old

Colak
User Off Offline

This is the best hack ever Häppy i love you. and your maps. and HC
I like it!
To the start Previous 1 220 21 2227 28 Next To the start