Gamemode.SetRoundWinner

From GMod Wiki

Revision as of 23:45, 9 December 2009 by Unrealomega (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Internal Hook: SetRoundWinner
SetRoundWinner is an internal hook, and should not generally be used.

{|style="border: solid 2px black; width: 100%; font-size: 90%; text-align: left; align: center; padding: 4px;" cellspacing="0" cellpadding="4"

|- |style="border-bottom: solid 1px black; font-size: 1.5em;" colspan="2"|Event Hook |-style="background: #EFEFEF;" |style="width: 10%; border-right: solid 1px black;"|Hook Name||SetRoundWinner |- |style="width: 10%; border-right: solid 1px black;"|Syntax||GM:SetRoundWinner( Player result, String resulttext ) |-style="background: #EFEFEF;" |style="width: 10%; border-right: solid 1px black;"|Description||Sets global data for use elseware |- |style="width: 10%; border-right: solid 1px black;"|Returns||Nil |- |style="background: #EFEFEF; width: 10%; border-right: solid 1px black;"|Lua State||style="background: #EFEFEF;"|NewerServer.png |- |style="width: 10%; border-right: solid 1px black;"|BBCode||[b][url=wiki.garrysmod.com/?title=Gamemode.SetRoundWinner]Gamemode.SetRoundWinner [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |}


Examples

DescriptionSets the winning player to 'ply' and the text to say that that player won.
Used onNewerServer.png
Code
 
Gm.SetRoundWinner(ply, ply:GetName() .. " wins!")
 
OutputN/A


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox