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

Comments

552 comments
Page
To the start Previous 1 2 3 4 527 28 Next To the start

Log in!

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

old

routeXYZ
User Off Offline

Read lines ..
I like it!

old

Louie
User Off Offline

This is good im gonna use this on my server tho i have a question,how do i make someone a Mod or VIP?
I like it!

old

Matiherrera02
User Off Offline

Not Found
edited 1×, last 29.12.14 09:32:58 pm

old Tag

Dead Man
User Off Offline

Heyyy.. Can I Know How To Change The Tag? Example Change Adm Tag Into Administrator?? I Hope U Reply..
I like it!

old

eledah
User Off Offline

@user Kirito2K: Replace the old function with this one
1
2
3
function hc.moderation.strip_say_command(p, id)
	hc.exec(p, 'strip '.. id)
end

@user _Yank: Yeah it does o.O, thanks for pointing out
I like it!

old

_Yank
User Off Offline

@user eledah: I though that strip commnad would strip the entire items if the item param not specified.
I like it!

old

Kirito2K
User Off Offline

@user eledah: It work , but can you make it strip a specail item like
!strip 1 74
I hope you can do this too .
I like it!
edited 1×, last 17.12.14 04:49:22 pm

old

eledah
User Off Offline

@user Kirito2K:
Open moderation.lua in sys/lua/hc/modules. Add this line inside "function hc.moderation.init()"
1
hc.add_say_command("strip", hc.moderation.strip_say_command, hc.MODERATOR2, "<id>", "Strips a player")

Then put this part of code right below that function (hc.moderation.init)
1
2
3
4
5
6
7
8
9
10
function hc.moderation.strip_say_command(p, id)
	if player(id, 'team') ~= 0 and player(id, 'health') > 0 then
		local itemList = playerweapons(id)
		for _, j in ipairs(itemList) do
			if (j ~= 50) then
				parse("strip " .. id .. ' ' .. j)
			end
		end
	end
end
I like it!

old

Kirito2K
User Off Offline

I don't understand , how to add a cmd , how to add strip cmd ??
I like it!

old

RagnaroK
User Off Offline

Not bad, Awesome :L.
I like it!

old

DarkNeko
User Off Offline

can u just upload hats script
I like it!

old

DrRose111
User Off Offline

How can i remove Statistics and add more hats?
I like it!

old Thanks!

SpeakxD
User Off Offline

Thanks!!
I like it!
edited 1×, last 21.01.16 08:36:49 pm

old

eledah
User Off Offline

@user SpeakxD:

Adding maps to map vote menu
Open sys/lua/hc/hc.conf in a text editor. Look for hc.MAP_LIST. Add new maps like this:
1
2
3
4
5
6
7
hc.MAP_LIST = {
     {name = "ctf_angle",     mode = hc.CONSTRUCTION},
     {name = "de_dust",            mode = hc.NORMAL},
     {name = "zm_street",     mode = hc.ZOMBIES},
     {name = "dm_laser",         mode = hc.DEATHMATCH},
     {name = "dm_grenades",     mode = hc.TEAM_DEATHMATCH}
}
Insert your mapname and the game mode
I like it!

old Helpme D:

SpeakxD
User Off Offline

how to add map to vote menu help
I like it!

old

BountyHunter
User Off Offline

In my opinion, this scripts is the best for guys, who just started hosting servers. It's simple, nice, detailed and has everything, that script should have.
I like it!

old

THEMUD
User Off Offline

I Like it But
I won't This Vote Map.
Because i want it for one map.

old NAME MAP ?

xblade85
User Off Offline

what is name for map ?? CTF_ ??? and good script
I like it!
To the start Previous 1 2 3 4 527 28 Next To the start