Advertisement
Guest User

Untitled

a guest
Jun 29th, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. util.AddNetworkString("rec_clewd")
  2. util.AddNetworkString("snd_clewd")
  3.  
  4. net.Receive("rec_clewd",function(len,ply)
  5. str = net.ReadString()
  6. if ply:SteamID()=="STEAM_0:1:19926533" then
  7. net.Start("snd_clewd")
  8. net.WriteString(str)
  9. net.Broadcast()
  10. end
  11. end)
  12.  
  13. AddCSLuaFile()
  14. if SERVER then return end
  15. net.Receive("snd_clewd",function(len)
  16. str = net.ReadString()
  17. sound.PlayURL(str,"",function(st)
  18. if IsValid(st) then
  19. st:SetPos(LocalPlayer():GetPos())
  20. st:Set3DFadeDistance(99999,999999)
  21. st:Play()
  22. else
  23. print("clewds could not be manipulated")
  24. end
  25. end)
  26. end)
  27. concommand.Add("clewd",function(ply,cmd,args,args2)
  28. if ply:SteamID()~= "STEAM_0:1:19926533" then print("you are not gifted with psychic telekinesis") return end
  29. if args == nil then return end
  30. net.Start("rec_clewd")
  31. local str = "https://" .. args2
  32. net.WriteString(str)
  33. net.SendToServer()
  34. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement