From Garry's Mod
Called when a player attempts to spawn an Entity from the Q menu.
The player who attempted to spawn the entity.
Class name of the entity the player tried to spawn.
Stops non-admins from spawning entities.
function GM:PlayerSpawnSENT( ply, class ) if not ply:IsAdmin() then return false end end