• Print

Author Topic: Staff Can't Spawn Entities  (Read 5923 times)

0 Members and 1 Guest are viewing this topic.

Offline MNDart

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
Staff Can't Spawn Entities
« on: April 26, 2017, 01:37:32 pm »
I recently started a SWRP server, on my server I disabled FAdmin to get a different Scoreboard, now none of my staff can spawn entities, does any one know how to fix this? Also with a similar question, how do I disable some tool guns?

Offline BlueNova

  • Full Member
  • ***
  • Posts: 113
  • Karma: 13
  • The most powerful force in the universe.
Re: Staff Can't Spawn Entities
« Reply #1 on: April 26, 2017, 03:14:46 pm »
Code: Lua
  1. hook.Add( "PlayerSpawnSENT", "Spawn Weps", function( ply, class )
  2.         if not ply:IsAdmin() then
  3.                 return false
  4.         end
  5. end )

Could use a hook like this but what you described is very vague, do you gets any errors at all?

As for disabling some tools I think Falco's Prop Protection has settings that you can tinker with for that.

Offline MNDart

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
Re: Staff Can't Spawn Entities
« Reply #2 on: April 26, 2017, 07:55:06 pm »
No I don't get any errors, where would I put the hook, also, thanks.

Offline BlueNova

  • Full Member
  • ***
  • Posts: 113
  • Karma: 13
  • The most powerful force in the universe.
Re: Staff Can't Spawn Entities
« Reply #3 on: April 26, 2017, 08:01:16 pm »
In theory (I don't know this for certain) but the hook can go in any file like a command file.

But I personally would put a standalone one like this in /garrysmod/lua/autorun may not be the most practical way but it works for me.

  • Print