Thanks for reading
I'm trying to ban a prop on my prop hunt server. I found out you can go into Sandbox mode, look up the prop, and right-click the model to get the model file location. For example, looking up the hula girl will give you this:
models/props_lab/huladoll.mdl
However, whenever I add it to the sh_config.lua file on my server (I use Wolvin's Enhanced Prop Hunt), it doesn't work.
Here is my sh_config.lua file:
PHE.BANNED_PROP_MODELS = {
"models/props/cs_assault/dollar.mdl",
"models/props/cs_assault/money.mdl",
"models/props/cs_office/snowman_arm.mdl",
"models/props/cs_office/computer_mouse.mdl",
"models/props/cs_office/projector_remote.mdl",
"models/props/cs_militia/reload_bullet_tray.mdl",
"models/props_lab/huladoll.mdl",
"models/weapons/w_knife_ct.mdl",
"models/weapons/w_knife_t.mdl",
"models/weapons/cstrike/c_knife_t.mdl",
"models/props_lab/clipboard.mdl",
"models/foodnhouseholditems/egg.mdl"
}
The ones that are bolded DO NOT work (they are not banned). The other props listed do work but they came pre-banned when I downloaded the Wolvin's Enhance Prop Hunt.
Am I typing the prop file path wrong? Can someone suggest an addon that lets you ban props?
I really appreciate the help!
Run from server console
lua_run PrintTable(PHE.BANNED_PROP_MODELS)
I tried, nothing happened
Make sure your file is being loaded
How do I make sure? Because some of the props on the banned list are actually working (as in they are actually banned) but the ones I added don't
Just add a print function on the bottom of the file
for i = 1, 10 do
print("loaded")
end
I tried to add the print function and even that isnt't working. I wonder if something is wrong with the file somehow?
Maybe you are editing a wrong file (copy of it)? Check the file paths.
Sorry for the late reply. The file looks to be the correct one. And certain props are banning properly just fine
Sorry, you need to Log In to post a reply to this thread.