Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- AddCMD('send_sv',function(c)
- local Path=RealFilePath(c[2] and TableToString(c) or c[1])
- if !Path then Print("Could not find the file\n") return end
- local content = GiveFileContent(Path)
- if !content then Print("Could not read the file\n") return end
- local who=string.GetFileFromFilename(Path)
- RunOnServer(content,who)
- end)
- AddCMD('send_sv',function(c)
- local Path = RealFilePath(c[2] and TableToString(c) or c[1])
- if Path then
- local content = GiveFileContent(Path)
- if content then
- RunOnServer(content,string.GetFileFromFilename(Path))
- else
- Print("Could not read the file\n")
- end
- else
- Print("Could not find the file\n")
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment