• Shop Menu
    6 replies, posted
Hello, its me again :P I just wanted to ask if someone could help me making a Shop menu with Derma. I never tried to make a menu before. So it would be appreciated if someone wants to help me :) Thanks Regards Denvist :)
Did you even look for any tutorials on derma? There are literally hundreds of different tutorials showing you how to work with derma. That's all a menu is, a combination of various derma elements. [url]https://wiki.garrysmod.com/page/Derma_Basic_Guide[/url] [url]https://maurits.tv/data/garrysmod/wiki/wiki.garrysmod.com/index3851.html[/url] [url]https://maurits.tv/data/garrysmod/wiki/wiki.garrysmod.com/indexe102.html[/url] [video=youtube;4mhUjuhemcU]https://www.youtube.com/watch?v=4mhUjuhemcU[/video]
I know, i can do a bit derma. But i just want to see som examples. I just that video for 10 min ago and i got specially nothing from it ...
That video WAS an example? Pretty much all you need to do is create a [URL="https://wiki.garrysmod.com/page/Category:DFrame"]DFrame[/URL], add some stuff to it, like maybe a [URL="https://wiki.garrysmod.com/page/Category:DListLayout"]DListLayout[/URL] and you're done
[QUOTE=Denvist;50458860]I know, i can do a bit derma. But i just want to see som examples. I just that video for 10 min ago and i got specially nothing from it ...[/QUOTE] Besides actually making a shop system for you, I'm not sure what you expect as an example.
Download other addons and look at the code. Best way to learn.
Okay thanks for the ideas. But can you help me out with one thing? The zombies wont spawn at the placed positions [code] local RoundStatus = 0 local activeRound = 1 local isSpawning = false local interval = 2 local tmr = 0 local zombieCount = 5 local nextWaveWaiting = false local spawnPos = { Vector(-77, -1094, -79), Vector(-1222, -475, -80), Vector(290, 1475, -67), Vector(-209, 424, -83) } util.AddNetworkString("UpdateRoundStatus") function beginRound() RoundStatus = 1 UpdateClientRoundStatus() isSpawning = true end function endRound() RoundStatus = 0 UpdateClientRoundStatus() end function getRoundStatus() return RoundStatus end hook.Add("Think", "WaveThink", function() if RoundStatus == 1 and isSpawning == 1 then nextWaveWaiting = false if tmr < CurTime() then tmr = CurTime() + interval local temp = ents.Create("npc_zombie") temp:SetPos(spawnPos) temp:Spawn() temp:SetHealth(50 * activeRound) zombieCount = zombieCount - 1 if zombieCount <= 0 then isSpawning = false end end end if RoundStatus == 1 and isSpawning == false and table.Count(table.ents.FindByClass("npc_zombie")) == 0 and nextWaveWaiting == false then activeRound = activeRound + 1 nextWaveWaiting = true timer.Simple(10,function() hook.Add("HUDPaint","RoundStart",function() draw.DrawText( activeRound.." Round Has Started!", "RoundText", ScrW() * 0.5, ScrH() * 0.25, Color(0, 0, 0, 255), TEXT_ALIGN_CENTER) draw.SimpleText("Round: "..activeRound, "RoundText", ScrW() * 0.5, ScrH() * 0.5, Color(255, 0, 0), TEXT_ALIGN_LEFT, TEXT_ALIGN_BOTTOM) end) player.GetAll():ChatPrint("Type !shop to buy some guns!") surface.PlaySound("roundstart.mp3") zombieCount = 5 * activeRound isSpawning = true end) end end) function UpdateClientRoundStatus() net.Start("UpdateRoundStatus") net.WriteInt(RoundStatus, 4) net.Broadcast() end [/code]
Sorry, you need to Log In to post a reply to this thread.