Gamemode.OnRoundWinner
From GMod Wiki
(Redirected from OnRoundWinner)
| Event Hook | |
| Hook Name | OnRoundWinner |
| Syntax | GM:OnRoundWinner( Player result, String resulttext ) |
| Description | Used to determine actions to be taken at the conclusion of a round won where a single player is the victor |
| Returns | Nil |
| Lua State | |
| BBCode | [b][url=wiki.garrysmod.com/?title=Gamemode.OnRoundWinner]Gamemode.OnRoundWinner [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
| Description | Adds to the score of the player. This function is empty by default. |
|---|---|
| Used on | |
| Code | function GM:OnRoundWinner(result, resulttext) result:AddFrags(1) end |
| Output | N/A |
Additional Notes
- Is called from RoundEndWithResult