Enforce player spawning

Hello. I’ve been looking for a while and can’t find anything that would allow me to enforce whether or not the player can spawn. I figured it would be something like a gamemode function that I could override.

Something along these lines…

[lua]
function GM:PlayerCanSpawn(ply)
return true
end
[/lua]

[editline]09:45PM[/editline]

Hmm, nevermind. I am an idiot. Please beat me with a heavy blunt object.