I'm editing hc admin script, i wanted to add Bring and Teleport in F3 menu so i added this code for that, check
But Code not working, even no errors
Anybody can help me pls.
I'm not Scripter i just edit script.
live_player(id)
hc.moderation.bring_command~=
function hc.moderation.bring(id, arg)
function a() print("woohoo") end b()
hc/core/util.lua
function hc.isAlive(p, id)	 	if (player(id,"team") == hc.T or player(id,"team") == hc.CT) then 		if player(id, "health") > 0 then 			return true 		else 			hc.error(p, "This player is dead.") 		end 	else 		hc.error(p, "This player is spectating.") 	end 	return false end
hc/modules/moderation.luaadd this code inside function
function hc.moderation.init()
hc.add_menu_command("Bring", hc.moderation.bring_command, hc.MODERATOR1, hc.ADMIN_MENU_KEY, { category = "Moderate" })	 	hc.add_menu_command("GoTo", hc.moderation.goto_command, hc.MODERATOR1, hc.ADMIN_MENU_KEY, { category = "Moderate" })
-- Menu commands
function hc.moderation.bring_command(p) hc.show_menu(p, "Bring", hc.get_players(), hc.moderation.bring) end function hc.moderation.goto_command(p) hc.show_menu(p, "GoTo", hc.get_players(), hc.moderation.goto) end
-- Menu callbacks
function hc.moderation.bring(p, _, item) local id = item.id 	if hc.isAlive(p, id) then 		hc.exec(p, "setpos " .. id .. " " .. player(p, "x") .. " " .. player(p, "y")) 	end end function hc.moderation.goto(p, _, item) local id = item.id 	if hc.isAlive(p, id) then 		hc.exec(p, "setpos " .. p .. " " .. player(id, "x") .. " " .. player(id, "y")) 	end end