Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Names of the tabs on the sidebar
- SSK.CommandsTabTitle = "Comandos"
- SSK.JobsTabTitle = "Trabajos"
- SSK.EntitiesTabTitle = "Entidades"
- --Title for first section of commands
- SSK.FirstCommandsTitle = "Comandos de Dinero"
- --Title for second section of commands
- SSK.SecondCommandsTitle = "Comandos sobre el Roleplay"
- --Title for third section of commands
- SSK.ThirdCommandsTitle = "Otros Comandos"
- --Title for Civil Protection section of commands
- SSK.CPCommandsTitle = "Comandos de la policía"
- --Title for Civil Protection section of commands
- SSK.MayorCommandsTitle = "Comandos del Alcalde"
- --The URL that opens when clicking the Forum tab
- SSK.ForumURL = "http://google.com"
- --The URL that opens when clicking the donate tab
- SSK.DonateURL = "http://google.com"
- --Whether or not to show donator only entities to all players
- SSK.ShowDonatorEntitiesToAll = false
- SSK.ShowVIPJobsToAll = true
- --Access to certain commands, make sure you add commas!
- timer.Simple( 1, function()
- SSK.AccessToCPCmds = { TEAM_P, TEAM_JP, TEAM_S, TEAM_JS, TEAM_ALCALDE }
- SSK.AccessToMayorCmds = { TEAM_ALCALDE }
- end)
- -- Adding Commands Buttons (Advanced)
- /*
- MenuAddMButton - Adds button to first section
- MenuAddRPButton - Adds button to second section
- MenuAddCPButton - Adds button to exclusive CP section
- MenuAddMayorButton - Adds button to exclusive mayor section
- Format goes as shown:
- MenuAddMButton( [Title of button], [Function of button] )
- ===============================================================================
- If you would just like the button to run a command (i.e. /buyhealth):
- For the [Function of button] argument, use:
- RunConsoleCommand( "say", [Command] )
- ===============================================================================
- If you would like to open a window that takes the players input (number or reason) when clicked:
- For the [Function of button] argument, use:
- function() OpenTextBox( [Title of dialog box], [Subtext of dialog box], [Command] ) end
- ===============================================================================
- If you would like to open a window with a drop down of players when clicked:
- For the [Function of button] argument, use:
- function() OpenPlyBox( [Title of dialog box], [Subheading over dropdown], [Command] ) end
- ===============================================================================
- If you would like to open a window with a drop down of players and an input box (reason or number) when clicked:
- For the [Function of button] argument, use:
- function() OpenPlyReasonBox( [Title of dialog box], [Subheading over dropdown], [Subheading over input box], [Command] ) end
- ===============================================================================
- */
- WEB_BUTTONS = {}
- MONEYCMD_BUTTONS = {}
- RPCMD_BUTTONS = {}
- CPCMD_BUTTONS = {}
- MAYORCMD_BUTTONS = {}
- OTHERCMD_BUTTONS = {}
- local function AddSidebarButton( n, f )
- table.insert(WEB_BUTTONS, { Title = n, Func = f } )
- end
- local function MenuAddMButton( n, f )
- table.insert(MONEYCMD_BUTTONS, { NAME = n, FUNC = f } )
- end
- local function MenuAddRPButton( n, f )
- table.insert(RPCMD_BUTTONS, { NAME = n, FUNC = f } )
- end
- local function MenuAddCPButton( n, f )
- table.insert(CPCMD_BUTTONS, { NAME = n, FUNC = f } )
- end
- local function MenuAddMayorButton( n, f )
- table.insert(MAYORCMD_BUTTONS, { NAME = n, FUNC = f } )
- end
- local function MenuAddOtherButton( n, f )
- table.insert(OTHERCMD_BUTTONS, { NAME = n, FUNC = f } )
- end
- --Add Buttons below the divider, web URLs must start with "http://"!
- AddSidebarButton( "Foro", function() OpenWebpage( "http://www.google.com" ) end )
- AddSidebarButton( "Donar", function() OpenWebpage( "http://www.google.com" ) end )
- --First Section
- MenuAddMButton( "Dar Dinero a la Persona a la que Miras", function() OpenTextBox( "Dar Dinero", "Cuanto dinero le quieres dar a esa persona?", "/give" ) end )
- MenuAddMButton( "Tirar Dinero", function() OpenTextBox( "Tirar Dinero", "Cuanto dinero quieres soltar?", "/moneydrop" ) end )
- --MenuAddMButton( "Buy Health", function() RunConsoleCommand( "say", "/buyhealth" ) end )
- --Second Section
- MenuAddRPButton( "Cambiar tu Nombre de Roleplay", function() OpenTextBox( "Cambiar Nombre", "Coloca el nombre aqui:", "/rpname" ) end )
- MenuAddRPButton( "Dormirse/Despertarse", function() RunConsoleCommand( "say", "/sleep" ) end )
- MenuAddRPButton( "Soltar tu arma", function() RunConsoleCommand( "say", "/drop" ) end )
- MenuAddRPButton( "Pedir una licensia", function() RunConsoleCommand( "say", "/requestlicense" ) end )
- MenuAddRPButton( "Demotear un jugador", function() OpenPlyReasonBox( "Demote a player", "A que persona quieres demotear?", "Cual es la razón por la que quieres demotearla?", "/demote" ) end )
- MenuAddRPButton( "Vender todas tus puertas", function() RunConsoleCommand( "say", "/unownalldoors" ) end )
- MenuAddCPButton( "Dar wanted a una persona", function() OpenPlyReasonBox( "Poner en busca a una persona", "A que persona quieres darle wanted?", "Why would you like to make this player wanted?", "/wanted" ) end )
- MenuAddCPButton( "Quitarle el wanted a una persona, function() OpenPlyBox( "Quitarle la búsqueda a una persona", "A que jugador quieres quitarle el wanted?", "/unwanted" ) end )
- MenuAddCPButton( "Dar warrant a una persona", function() OpenPlyReasonBox( "Dar warrant a una persona", "A que usuario quieres darle un warrant?", "Cual es tu razón?", "/warrant" ) end )
- MenuAddMayorButton( "Dar wanted a una persona", function() OpenPlyReasonBox( "Poner en busca a una persona", "A que persona quieres darle wanted?", "Why would you like to make this player wanted?", "/wanted" ) end )
- MenuAddMayorButton( "Quitarle el wanted a una persona, function() OpenPlyBox( "Quitarle la búsqueda a una persona", "A que jugador quieres quitarle el wanted?", "/unwanted" ) end )
- MenuAddMayorButton( "Dar warrant a una persona", function() OpenPlyReasonBox( "Dar warrant a una persona", "A que usuario quieres darle un warrant?", "Cual es tu razón?", "/warrant" ) end )
- MenuAddMayorButton( "Iniciar un LockDown", function() RunConsoleCommand( "say", "/lockdown" ) end )
- MenuAddMayorButton( "Terminar un LockDown", function() RunConsoleCommand( "say", "/unlockdown" ) end )
- MenuAddMayorButton( "Colocar el tablero de las leyes", function() RunConsoleCommand( "say", "/placelaws" ) end )
- MenuAddMayorButton( "Agregar una nueva ley", function() OpenTextBox( "Agregar leyes", "Introduce la nueva ley aqui:", "/addlaw" ) end )
- MenuAddOtherButton( "Llamar a un admin", function() OpenTextBox( "Llamar a un admin", "Cual es la razon?", "@" ) end )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement