[lua]local BANNEDPROPS = {}
function BanProp( model )
table.insert( BANNEDPROPS , model )
end
BanProp( âmodels/props_c17/oildrum001_explosive.mdlâ )
BanProp( âmodels/props/de_inferno/bell_small.mdlâ )
BanProp( âbell_smallâ )
BanProp( âmodels/props/de_inferno/bell_large.mdlâ )
BanProp( âbell_largeâ )
BanProp( âmodels/props/de_inferno/bell_largeb.mdlâ )
BanProp( âmodels/props_combine/prison01.mdlâ )
BanProp( âmodels/props_combine/prison01c.mdlâ )
BanProp( âmodels/props_combine/prison01b.mdlâ )
BanProp( âmodels/props_phx/amraam.mdlâ )
BanProp( âmodels/props_phx/oildrum001_explosive.mdlâ )
BanProp( âmodels/props_phx/torpedo.mdlâ )
BanProp( âmodels/props_phx/ww2bomb.mdlâ )
BanProp( âmodels/props_phx/misc/flakshell_big.mdlâ )
BanProp( âmodels/props_phx/mk-82.mdlâ )
BanProp( âamraamâ )
BanProp( âoildrum001_explosiveâ )
BanProp( âtorpedoâ )
BanProp( âww2bombâ )
BanProp( âflakshell_bigâ )
BanProp( âmk-82â )
BanProp( âprops_phx/ballâ)
BanProp( âprops_phx/huge/â)
BanProp( âmodels/props_explosive/explosive_butane_can.mdlâ)
BanProp( âmodels/props_explosive/explosive_butane_can02.mdlâ)
hook.Add( âPlayerSpawnPropâ , âCheckPropâ , function( pl, model)
model = string.lower( model )
local found = false
for k,v in ipairs( BANNEDPROPS ) do
if string.find( model, v ) then found = true end
end
if table.HasValue( BANNEDPROPS, model ) or found then
pl:ChatPrint( model .. " is Banned!" )
return false
end
end )[/lua]