Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

how to ban gear code id in admin house? (Epix admin)

Asked by 8 years ago

['bannedgear'] = {}

return function(set) if(not set['BannedGear']) then set['BannedGear'] = {} -- later end for _,comm in ipairs(set.Commands) do if(comm.Cmds[1] == "gear") then local oldFunction = comm.Function comm.Function = function(plr, args) local ok = true; for _,bg in ipairs(set['BannedGear']) do if(bg == args[1] or string(bg) == args[1]) then set.Message("Banned Gear", "We apologize, but this gear has been banned.", false, {plr}) ok = false; end end if(ok) then oldFunction(plr, args) end end break end end end

0
I'd assume you'd insert the id of the gear in bannedgear ObscureEntity 294 — 8y
0
Make sure you put the script in a code block and you explain the script's problem. M39a9am3R 3210 — 8y

Answer this question