local NOPRIV="You do not have the privalages to use this command" local OKMSG="Command run successfuly" function a_map( user, command, args ) if user:IsUserGroup("superadmin") or user:IsUserGroup("admin") then local str = "" for i = 1, table.getn( args ) do str = str .. " " .. args[ i ] end game.ConsoleCommand( "changelevel "..str.."\n" ) user:PrintMessage(HUD_PRINTCONSOLE,OKMSG) else user:PrintMessage(HUD_PRINTCONSOLE,NOPRIV) end end concommand.Add( "a_map",a_map) function a_limit( user, command, args ) if user:IsUserGroup("superadmin") or user:IsUserGroup("admin") then game.ConsoleCommand( "sbox_max"..args[1].." "..args[2].."\n" ) user:PrintMessage(HUD_PRINTCONSOLE,OKMSG) else user:PrintMessage(HUD_PRINTCONSOLE,NOPRIV) end end concommand.Add( "a_limit",a_limit) function a_kick( user, command, args ) if user:IsUserGroup("superadmin") or user:IsUserGroup("admin") or user:IsUserGroup("subadmin") then local str = "" for i = 1, table.getn( args ) do str = str .. " " .. args[ i ] end game.ConsoleCommand( "kick"..str.."\n" ) user:PrintMessage(HUD_PRINTCONSOLE,OKMSG) else user:PrintMessage(HUD_PRINTCONSOLE,NOPRIV) end end concommand.Add( "a_kick",a_kick) function a_ban( user, command, args ) if user:IsUserGroup("superadmin") then local str = "" for i = 1, table.getn( args ) do str = str .. " " .. args[ i ] end game.ConsoleCommand( "banid 0"..str.." kick\n" ) user:PrintMessage(HUD_PRINTCONSOLE,OKMSG) else user:PrintMessage(HUD_PRINTCONSOLE,NOPRIV) end end concommand.Add( "a_ban",a_ban)