Forum

> > CS2D > Scripts > !check / !ipall *Solved
Forums overviewCS2D overview Scripts overviewLog in to reply

English !check / !ipall *Solved

4 replies
To the start Previous 1 Next To the start

old !check / !ipall *Solved

apex2d
User Off Offline

Quote
If you can help me with HC Admin Script Format, I am very pleased

I am publishing a cs2d server located at Asia soon. I am using can anyone give me some codes related to !ipall? so its like when we type !ipall a list of users ip will be listed on chat( idea from fws jail). ill put you in the serverInfo for the help xd.

the !check feature is like when we type !check
there will be

Ingame Name : xxrapingguitarsxx
USGN Number: 123456
IP Addres : xxx.xxx.xxx

do I ask to much? xd
thanks for the help appreciate all of the help mates
edited 2×, last 03.01.16 09:42:20 pm

old Re: !check / !ipall *Solved

Gaios
Reviewer Off Offline

Quote
All command you have are:
!vm - Send a message to all VIP's online.
!mm - Send a message to all moderators online.
!<id>[,<id>...] - Send a private message to a few specified players.
!om - Send an offline message to a user.
!ombc - Send an offline message to all or a group of users.
!bc - Send a broadcast message.

Or do you wanna add a new command?

old Re: !check / !ipall *Solved

apex2d
User Off Offline

Quote
There is a identify code, but can only accessed from a table, F3 > Check > Identify

the thing I want is, this code can be accessed trough chat

Quote
function hc.moderation.id_command(p)
local options = { show_id = true }
hc.show_menu(p, "Identify", hc.get_players(), hc.moderation.id)
end

old Re: !check / !ipall *Solved

GeoB99
Moderator Off Offline

Quote
I may give you only "!ipall" script, the rest you can face for yourself (you can search for other scripts or so).
1
2
3
4
5
6
7
8
9
function say_(id, text)
	if string.sub(text, 1, 6) == "!check" then
		for _,i in pairs(player(0,"table")) do
			msg2(id,"# "..i..", "..player(i,"name")..", IP: "..player(i,"ip")..", USGN: "..player(i,"usgn"))
		end
	end
end

addhook("say","say_")
You should note though that it lists all the players in Console, not in chat at all. Not sure if you maybe like it or not but I do think it does not matter. I've tested the script and it works without any issues.

• Edit: I've tweaked the code a bit. Now it can check even the U.S.G.N ID of a player + print parameter is replaced with cs2d lua cmd msg2 and the !ipall command is now !check. Hope it's helps.
edited 5×, last 03.01.16 08:18:22 pm

old !check / !ipall *SOLVED

apex2d
User Off Offline

Quote
@user GeoB99:

Yaa its okay, I appreciate your help mate.

For y'all who needs !ipall with hc admin script format

HC Adhook -->
Spoiler >



HC Function -->
Spoiler >


Edit: Problem solved
edited 2×, last 04.01.16 05:55:48 pm
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview