Pivity

How To Stop Users from spawning props?

Last read Never
#1

Pretty new to making a server. Please help out. Just want to know how to make certain ranks not be able to spawn props, entities and vehicles. Thanks for any help.

Dumb x 3Agree x 1Optimistic x 1
#2

I found something on facepunch. If you just google how to restrict spawning props to super admins you'll find something. I'm on my phone but I could send you something over when I get home from work later on.

Agree x 3
#3

You need to start googling these answers, as they've been asked countless times.

Agree x 4Disagree x 2
#4
hook.Add("PlayerSpawnProp", "ur gay", function(ply, model)
if ply:Nick() == "Nookyava" then -- gays shouldnt be able to spawn props
return false
end

print(ply:Nick() .. " spawned: " .. model)

return true
end´´´

**Edited**

Anyways, look here http://wiki.garrysmod.com/page/Category:SANDBOX_Hooks

Dumb x 3Friendly x 2Agree x 1Funny x 1
#5

Thanks for answering my question man. Also i like parallax its very nice.

#6

You can also use URS and then set that certain groups proplimit to 0

Agree x 1
#7

WHere do I add this code to?

Funny x 1
#8
By[Apex] Darth Nihilusat 4th of August 2017 21:15:27
WHere do I add this code to?

Make a file in lua/autorun/server/ and name it something like stop_prop_spawning_thing.lua, then paste the code in there

Friendly x 1
#9

1 thing, My friend can't join my server but other people can. HELP!

Disagree x 1Dumb x 1
#10
By[Apex] Darth Nihilusat 5th of August 2017 00:14:31
1 thing, My friend can't join my server but other people can. HELP!

tell ur friend to get a better copy of gmod

(tell him to verify his game cache)

Agree x 1Dumb x 1
#11

i did

Edited still not work

Disagree x 1
Users viewing this thread
Nobody