Revision Difference
GM:PlayerDeathThink#551058
<function name="PlayerDeathThink" parent="GM" type="hook">
<ishook>yes</ishook>
<description>
Called every think while the player is dead. The return value will determine if the player respawns.
Overwriting this function will prevent players from respawning by pressing space or clicking.
<bug issue="1577">This hook is not called for players with the <page text="FL_FROZEN">Enums/FL</page> flag applied.</bug>
</description>
<realm>Server</realm>
<predicted>No</predicted>
<args>
<arg name="ply" type="Player">The player affected in the hook.</arg>
</args>
<rets>
<ret name="" type="boolean">Allow spawn</ret>⤶
<ret name="" type="boolean">Return a non-nil value to prevent respawn.</ret>⤶
</rets>
</function>