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: 32ms

DB GetPage 4
Generate Html 4
SaveChanges (1) 10
Render Body 0
Render Sidebar 12