Garry's Mod Wiki

GM:CanPlayerSuicide

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.

function GM:CanPlayerSuicide( ply ) return ply:IsSuperAdmin() end

Page Links


Special Pages


Wikis

?

Render Time: 28ms

Session 0
DB GetPage 3
Generate Html 3
SaveChanges 8
Render Body 0
Render Sidebar 12