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 game.ConsoleCommand( "changelevel "..args[1].."\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 = 2, table.getn( args ) do str = str .. " " .. args[ i ] end game.ConsoleCommand( "kickid "..args[1].." "..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 game.ConsoleCommand( "banid 0"..args[1].." kick\n" ) user:PrintMessage(HUD_PRINTCONSOLE,OKMSG) else user:PrintMessage(HUD_PRINTCONSOLE,NOPRIV) end end concommand.Add( "a_ban",a_ban)