GM:AddDeathNotice

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

Contents

Description

Adds a death notice entry.

Arguments

string attacker

The name of the attacker

Arguments

number attackerTeam

The team of the attacker

Arguments

string inflictor

Class name of the entity inflicting the damage

Arguments

string victim

Name of the victim

Arguments

number victimTeam

Team of the victim

Examples

Example

Shows a suicide death notice in Sandbox.

local ply = Entity(1)
GAMEMODE:AddDeathNotice( ply:GetName(), ply:Team(), nil, ply:GetName(), ply:Team() )

Output:

suidcide death notice.jpg
Personal tools
Navigation