Gamemode.OnRoundWinner

From GMod Wiki

(Redirected from OnRoundWinner)
Jump to: navigation, search
Event Hook
Hook NameOnRoundWinner
SyntaxGM:OnRoundWinner( Player result, String resulttext )
DescriptionUsed to determine actions to be taken at the conclusion of a round won where a single player is the victor
ReturnsNil
Lua StateNewerServer.png
BBCode[b][url=wiki.garrysmod.com/?title=Gamemode.OnRoundWinner]Gamemode.OnRoundWinner [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]


Examples

DescriptionAdds to the score of the player. This function is empty by default.
Used onNewerServer.png
Code
 
function GM:OnRoundWinner(result, resulttext)
	result:AddFrags(1)
end
 
OutputN/A


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox