Garry's Mod Wiki

GM:PlayerDeathThink

  boolean GM:PlayerDeathThink( Player ply )

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.

This hook is not called for players with the FL_FROZEN flag applied.

Issue Tracker: 1577

Arguments

1 Player ply
The player affected in the hook.

Returns

1 boolean
This hook does not define a return value. The description below just describes how the hook library works in general.

Return a non-nil value to prevent the current gamemode from handling this event. In the base gamemode, the gamemode handles player respawning in this hook. So blocking the gamemode hook will prevent player from respawning, in this specific case.