Preventing the player from spawning

How do you prevent the player from spawning? Specifically only after a certain time has elapsed after death.

Return false in the gamemode hook PlayerDeathThink to stop him from spawning.

Works quite nicely, thank you.

[editline]07:01PM[/editline]

Right, I know how to stop the player from spawning but I can’t figure out at all how to set it up so you have to wait a certain time before you can…
[lua]
function Death( ply, inflictor, killer )
ply.NextSpawnTime = CurTime() + 5

end
hook.Add( “PlayerDeath”, “eg”, Death )

function DeathT( ply, inflictor, killer )
if CurTime() > ply.NextSpawnTime then
return end

return false

end
hook.Add( “PlayerDeathThink”, “egeh”, DeathT )
[/lua]
I’ve tried
[lua]
if CurTime() > ply.NextSpawnTime then
return else return false end
[/lua]
and [lua]return true else return false[/lua]
and many other combination but it refuses to work, anyone know why and how I can fix it?