Garry's Mod Wiki

Garry's Mod Wiki

  boolean GM:CanPlayerSuicide( Player player )

Description

Determines if the player can kill themselves using the concommands kill or explode.

Arguments

1 Player player
The player

Returns

1 boolean
True if they can suicide.

Example

Makes suiciding only accessible for super admins.

hook.Add( "CanPlayerSuicide", "AllowOwnerSuicide", function( ply ) if not ply:IsSuperAdmin() then return false end end )

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated twice a day. Edits and history are not available.

Last Parsed: Loading...