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 224 25 26 27 28 Next To the start

Log in!

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

old

Mushroom
User Off Offline

oh i forget to see this script wich is cool and i liked ur serv camper but u closed it
I like it!

old

Picias
BANNED Off Offline

i'm done it yet but .. F2 F3 F4 is not work
I like it!

old

Happy Camper
User Off Offline

@Piclas: Enter these lines in server.lua:
1
2
3
hc_dir  = "sys/lua/hc"
hc_conf = hc_dir.."/hc.conf"
dofile("sys/lua/hc/hc.lua")

old

Picias
BANNED Off Offline

sorry but the problem is not closed
iam done with i take my Usgn in adm..
but
now i writed in Server .lua
--dofile("sys/lua/hc/hc.lua")     but it is not work ??
I like it!

old

Happy Camper
User Off Offline

@Erdem_: It's most likely a bug. Sorry, but I don't have time to fix it now. You could try to create the file (top.hct) yourself and see if that helps. Just create an empty file. Maybe then the script will save some stuff to it.

@holhit11: Save attributes as png files in gfx/hc/attribs. Then open sys/lua/hc/modules/playerattribs.lua in a text editor. Look for hc.playerattribs.ATTRIBUTES. Here you can add the new attributes. Type the name you want in the menu on the left side and the filename on the right side, like this:
1
2
3
hc.playerattribs.ATTRIBUTES = {
	Angel = "angel.png",
	Devil = "devil.png",

@Piclas: Open the file sys/lua/hc/data/config/users.hcu in a text editor. Enter this line:
1
53068,Adm,Piclas
Now you should be admin.

old

Picias
BANNED Off Offline

sorry ..
its SO HARD I FIND WHERE i Give MY usgn ...
Do you can Show me image..?
I like it!

old New hats

Amoeba
User Off Offline

HC,How do I add new attributes?
I like it!

old ...

Erdem_
User Off Offline

Error : sys/lua/hc/stats/top.hct no such file or directory .
No top30 ... Top30 always resets.

old

Happy Camper
User Off Offline

@raffy154: I am not sure exactly what you mean. Did you look at Readme.txt? There are some instructions there how to install and configure the script.

old Arghh

raffy154
User Off Offline

What will I change in SCRIPTNAME.lua
I like it!

old

Amoeba
User Off Offline

Thnx a lot HC.
I do not matter whether you replied late but replied me.Thnx a lot
I had done what U told but mistake was I did
hc.MAP_LIST = {"de_dust,de_dust2"}
Inverted commas were not there.
I like it!

old

Happy Camper
User Off Offline

@lohit11: Sorry, I didn't see your question. This is what you do:

Open sys/lua/hc/hc.conf in a text editor. Look for hc.MAP_LIST. Enter maps like this:
1
hc.MAP_LIST = {"de_dust","de_dust2"}

old Vote Map list

Amoeba
User Off Offline

HC,You replied all of them but not me.
I make a server(From new Game).
I woant VOTE_MAPLIST containing maps to vote.
Where shall I add them?
I like it!

old

h3LLiuM
User Off Offline

thank you happy Camper its very good lua i say it
I like it!

old

Happy Camper
User Off Offline

@h3LLiuM: Look a few posts below. I told Quickshooter052 how to make himself admin. Just do the same with your UGSN number (47861). Once you are admin, you press F2->Say Colour and select a colour.

old

h3LLiuM
User Off Offline

happy camper i love your scripts but i dont know how to say color? and im not admin
I like it!

old Emoticon

Hanz
User Off Offline

Hello, Happy Camper can you help me to make emoticon lua script i mean like your lua script but i just need the emoticon lua script example and automatic when we say it show smiling image

Can you help me to make that lua script?
I like it!

old Yay!

VegBerg
User Off Offline

Hello, Häppy C@mper, I loved your servers...
And the script is awesome
I like it!
To the start Previous 1 224 25 26 27 28 Next To the start