Garry's Mod Wiki

GM:CanPlayerSuicide

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 ) return ply:IsSuperAdmin() end )

Page Links


Special Pages


Wikis

?

Render Time: 31ms

DB GetPage 8
Generate Html 3
SaveChanges (1) 12
Render Body 0
Render Sidebar 6