Gamemode.SetRoundResult

From GMod Wiki

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