Gamemode.OnRoundStart

From GMod Wiki

Revision as of 05:23, 15 August 2010 by Samm5506 (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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