Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(SERVER) then
- util.AddNetworkString("SpawnBarrelMate")
- net.Receive("SpawnBarrelMate", function(len,ply)
- if(IsValid(ply)) then
- local barrel = ents.Create("prop_physics")
- barrel:SetPos(ply:GetPos()+Vector(0,0,30))
- barrel:SetModel("models/props_c17/oildrum001_explosive.mdl")
- barrel:Spawn()
- barrel:Ignite(30)
- end
- end)
- end
- if(CLIENT) then
- local frame
- GM.ShowHelp = function()
- if(frame) then
- frame:SetVisible(true)
- else
- frame = vgui.Create("DFrame")
- frame:SetSize(500,500)
- frame:Center()
- local button = vgui.Create("DButton")
- button:SetSize(300, 50)
- button:SetPos(500/2-(300/2), 500/2-(50/2))
- button:SetText("Press me for free pussy")
- button.DoClick = function()
- net.Start("SpawnBarrelMate")
- net.SendToServer()
- frame:SetVisible(false)
- chat.AddText(Color(100,100,255,255), LocalPlayer(), "u stupid fuck")
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement