Gamemode.OnRoundStart

From GMod Wiki

Jump to: navigation, search
Event Hook
Hook NameOnRoundStart
SyntaxGM:OnRoundStart( )
DescriptionCalled when a new round begins
ReturnsNil
Lua StateNewerServer.png
BBCode[b][url=wiki.garrysmod.com/?title=Gamemode.OnRoundStart]Gamemode.OnRoundStart [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]


Examples

DescriptionPrints "A new round has started!" to all player's chat each round.
Used onNewerServer.png
Code
hook.Add("OnRoundStart","TellEveryone",function()
     for _,v in ipairs(player.GetAll()) do v:ChatPrint("A new round has started!") end
end)
OutputN/A
Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox