Gamemode.PlayerEndVoice

From GMod Wiki

Revision as of 08:13, 3 October 2009 by Dlaor (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Event Hook
Hook NamePlayerEndVoice
SyntaxGM:PlayerEndVoice( Player player )
DescriptionCalled when a player closes their mic.
ReturnsNil
Lua StateNewerClient.png
BBCode[b][url=wiki.garrysmod.com/?title=Gamemode.PlayerEndVoice]Gamemode.PlayerEndVoice [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]


Examples

DescriptionPrints who closed their mic
Used onNewerClient.png
Code
 
local function PlayerEndVoice( ply )
	print(ply:Name().. " has stopped talking!")
end
hook.Add( "PlayerEndVoice", "PlayerEndedTheirVoice", PlayerEndVoice)
Output<Player name Here> has stopped talking!


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox