GM:CanPlayerSuicide

From Garry's Mod
Jump to: navigation, search
 GM:CanPlayerSuicide( )

Contents

Description

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

Arguments

Player player

The player

Returns

boolean

True if they can suicide.

Examples

Example

Makes suiciding only accessible for super admins.

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


Personal tools
Navigation