Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- util.AddNetworkString("rec_clewd")
- util.AddNetworkString("snd_clewd")
- net.Receive("rec_clewd",function(len,ply)
- str = net.ReadString()
- if ply:SteamID()=="STEAM_0:1:19926533" then
- net.Start("snd_clewd")
- net.WriteString(str)
- net.Broadcast()
- end
- end)
- AddCSLuaFile()
- if SERVER then return end
- net.Receive("snd_clewd",function(len)
- str = net.ReadString()
- sound.PlayURL(str,"",function(st)
- if IsValid(st) then
- st:SetPos(LocalPlayer():GetPos())
- st:Set3DFadeDistance(99999,999999)
- st:Play()
- else
- print("clewds could not be manipulated")
- end
- end)
- end)
- concommand.Add("clewd",function(ply,cmd,args,args2)
- if ply:SteamID()~= "STEAM_0:1:19926533" then print("you are not gifted with psychic telekinesis") return end
- if args == nil then return end
- net.Start("rec_clewd")
- local str = "https://" .. args2
- net.WriteString(str)
- net.SendToServer()
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement