• Round system end screen.
    6 replies, posted
Hi all! I need some help or advice with my round system. I need to create a end title screen, also to make all players stop there movements and display a box on the screen. Then the screen to be gone after the timer has finished and the next round starts. Has anyone got any idea's or advice on how I would go about this? I know you may use a vgui but I am not sure on how I would go about it. This is the code I have so far. function round.End() --this is called upon when a round ends local sound = "npc/assassin/ball_zap1.wav" BroadcastLua("surface.PlaySound('"..sound.."')") round.Broadcast("Round over!") round.Broadcast( " Next round in " .. round.Break .. " seconds!") -- print acording to what the varibles say. How long until the next round starts. round.TimeLeft = round.Break if round.End then timer.Create( "Endwait", 30, 0, function() game.LoadNextMap( "dm_frantic", "dm_sloped", "dm_warehouse", "my_first_map") end) end end Many thanks -Duby
[CODE]function round.End() --this is called upon when a round ends local sound = "npc/assassin/ball_zap1.wav" BroadcastLua("surface.PlaySound('"..sound.."')") round.Broadcast("Round over!") round.Broadcast( " Next round in " .. round.Break .. " seconds!") -- print acording to what the varibles say. How long until the next round starts. round.TimeLeft = round.Break if round.End then timer.Create( "Endwait", 30, 0, function() game.LoadNextMap( "dm_frantic", "dm_sloped", "dm_warehouse", "my_first_map") end) end end[/CODE]
You could create a derma scoreboard and enable mouse and keyboard in it, then just remove the menu after the timer ends
Ok you must try to understand that doesn't mean a lot. Thats why I am asking for a reference point or someone to give a guide on it. Otherwise this topic will just be made again from someone else asking the same question.
[url]http://maurits.tv/data/garrysmod/wiki/wiki.garrysmod.com/indexe102.html#DListView[/url] This is a good guide on Derma, while old, I still find it working in GMod 13. The last two would be what you could use. DListView and Keyboard + Mouse input.
When making this would I simply put it in this function and it works. Or is there another process of which is needed to be taken?
Make a network function that opens a the menu clientside for the player.
Sorry, you need to Log In to post a reply to this thread.