Author Topic: How do I prevent players from spawning items?  (Read 536 times)

Pretty self-explanatory. I want people to be able to set lights on bricks, but not spawn themselves items. How would I go about this?

put a limit to "items" in the advanced server settings

then use up all the items to the limit

put a limit to "items" in the advanced server settings

then use up all the items to the limit

That doesn't seem really efficient though, there has to be a better way.

is it possible to set the item limit to 0?
plan B would be to try and modify the wrench arguments the client is sending to the server

If you want them to be completely erased, here are the 2 functions that possibly could prevent it.
function fxDtsBrick::SpawnItem(){}
function fxDtsBrick::SetItem(){}