Garry's Mod Wiki

GM:AddDeathNotice

  GM:AddDeathNotice( string attacker, number attackerTeam, string inflictor, string victim, number victimTeam )

Description

Adds a death notice entry.

Arguments

1 string attacker
The name of the attacker
2 number attackerTeam
The team of the attacker
3 string inflictor
Class name of the entity inflicting the damage
4 string victim
Name of the victim
5 number victimTeam
Team of the victim

Example

Shows a suicide death notice in Sandbox.

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