Garry's Mod Wiki

Revision Difference

GM:PlayerDeathThink#511093

<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 [FL_FROZEN](/gmod/Enums/FL) 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>⤶ </rets>⤶ </function>⤶ ⤶