Gamemode.AddDeathNotice

From GMod Wiki

Revision as of 21:42, 5 January 2011 by Shen (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Event Hook
Hook NameAddDeathNotice
SyntaxGM:AddDeathNotice( String Victim name, Integer team1, String Inflictor name, String Attacker name, Integer team2 )
DescriptionAdds a death notice.
ReturnsNil
Lua StateNewerClient.png
BBCode[b][url=wiki.garrysmod.com/?title=Gamemode.AddDeathNotice]Gamemode.AddDeathNotice [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]


Examples

DescriptionDraws a simple text-based death notice.
Used onNewerClient.png
Code
killicon.AddFont("kill", "Treubuchet24", "has killed", Color(255,255,255,255))
 
GAMEMODE:AddDeathNotice("Victim", 0, "kill", "Killer", 1001)
Output(On top of screen) Killer has killed Victim


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox