Python1320

CapsAdmin

Feb 24th, 2011
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.70 KB | None | 0 0
  1. AddCMD('send_sv',function(c)
  2.  
  3.     local Path=RealFilePath(c[2] and TableToString(c) or c[1])
  4.    
  5.     if !Path then Print("Could not find the file\n") return end
  6.    
  7.     local content = GiveFileContent(Path)
  8.    
  9.     if !content then Print("Could not read the file\n") return end
  10.    
  11.     local who=string.GetFileFromFilename(Path)
  12.    
  13.     RunOnServer(content,who)
  14.    
  15. end)
  16.  
  17. AddCMD('send_sv',function(c)
  18.  
  19.     local Path = RealFilePath(c[2] and TableToString(c) or c[1])
  20.    
  21.     if Path then    
  22.         local content = GiveFileContent(Path)
  23.        
  24.         if content then        
  25.             RunOnServer(content,string.GetFileFromFilename(Path))
  26.         else
  27.             Print("Could not read the file\n")
  28.         end
  29.        
  30.     else
  31.         Print("Could not find the file\n")
  32.     end
  33.        
  34. end)
Advertisement
Add Comment
Please, Sign In to add comment