Gamemode.SetRoundResult

From GMod Wiki

Revision as of 14:35, 25 December 2010 by Cube334 (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Gamemode Function: Gamemode.SetRoundResult
Gamemode.SetRoundResult is a function that is defined in the Fretta Gamemode and its derivatives.
Function
Syntax Gamemode.SetRoundResult( Number result, String resulttext )
Description:
Sets global data for use elseware
Returns: nil
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Gamemode.SetRoundResult]Gamemode.SetRoundResult [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

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


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox