Called when a player attempts to spawn an Entity from the Q menu.
1 Player ply
The player who attempted to spawn the entity.
2 string class
Class name of the entity the player tried to spawn.
Should the player be able to spawn the entity or not.
Stops non-admins from spawning entities.
function GM:PlayerSpawnSENT( ply, class ) if not ply:IsAdmin() then return false end end