• Non-Admin NPC spawning restirctions
    2 replies, posted
Well I tried to search, but it's almost impossible to sum up what I wanted to know in a search term so here goes. Is there a mod or other means of making it so other people cannot spawn NPCs [b]except[/b] admins. I can already limit people, but it effects everyone including admins. Another method I found was to use NPC spawn platforms, as they do not count toward the NPC limit, however anyone with a toolgun could use them, they are also very time consuming to set up. I need to be able to spawn things at a moments notice. So, anyone have an idea?
assmod + Admins have no limits + Limit NPCS = 0
[b][url=wiki.garrysmod.com/?title=Gamemode.PlayerSpawnNPC]Gamemode.PlayerSpawnNPC [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] [lua]hook.Add("PlayerSpawnNPC","StopThem!",function(pl,class,wep) return pl:IsAdmin() end)[/lua]
Sorry, you need to Log In to post a reply to this thread.