Advertisement
Guest User

Sleek Reskin

a guest
Nov 29th, 2015
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.55 KB | None | 0 0
  1. --Names of the tabs on the sidebar
  2. SSK.CommandsTabTitle = "Comandos"
  3. SSK.JobsTabTitle = "Trabajos"
  4. SSK.EntitiesTabTitle = "Entidades"
  5.  
  6. --Title for first section of commands
  7. SSK.FirstCommandsTitle = "Comandos de Dinero"
  8. --Title for second section of commands
  9. SSK.SecondCommandsTitle = "Comandos sobre el Roleplay"
  10. --Title for third section of commands
  11. SSK.ThirdCommandsTitle = "Otros Comandos"
  12. --Title for Civil Protection section of commands
  13. SSK.CPCommandsTitle = "Comandos de la policía"
  14. --Title for Civil Protection section of commands
  15. SSK.MayorCommandsTitle = "Comandos del Alcalde"
  16.  
  17. --The URL that opens when clicking the Forum tab
  18. SSK.ForumURL = "http://google.com"
  19. --The URL that opens when clicking the donate tab
  20. SSK.DonateURL = "http://google.com"
  21. --Whether or not to show donator only entities to all players
  22. SSK.ShowDonatorEntitiesToAll = false
  23. SSK.ShowVIPJobsToAll = true
  24.  
  25. --Access to certain commands, make sure you add commas!
  26.  
  27. timer.Simple( 1, function()
  28. SSK.AccessToCPCmds = { TEAM_P, TEAM_JP, TEAM_S, TEAM_JS, TEAM_ALCALDE }
  29.  
  30. SSK.AccessToMayorCmds = { TEAM_ALCALDE }
  31. end)
  32.  
  33.  
  34.  
  35. -- Adding Commands Buttons (Advanced)
  36. /*
  37. MenuAddMButton - Adds button to first section
  38. MenuAddRPButton - Adds button to second section
  39. MenuAddCPButton - Adds button to exclusive CP section
  40. MenuAddMayorButton - Adds button to exclusive mayor section
  41.  
  42. Format goes as shown:
  43. MenuAddMButton( [Title of button], [Function of button] )
  44.  
  45. ===============================================================================
  46.  
  47. If you would just like the button to run a command (i.e. /buyhealth):
  48. For the [Function of button] argument, use:
  49.  
  50. RunConsoleCommand( "say", [Command] )
  51.  
  52. ===============================================================================
  53.  
  54. If you would like to open a window that takes the players input (number or reason) when clicked:
  55. For the [Function of button] argument, use:
  56.  
  57. function() OpenTextBox( [Title of dialog box], [Subtext of dialog box], [Command] ) end
  58.  
  59. ===============================================================================
  60.  
  61. If you would like to open a window with a drop down of players when clicked:
  62. For the [Function of button] argument, use:
  63.  
  64. function() OpenPlyBox( [Title of dialog box], [Subheading over dropdown], [Command] ) end
  65.  
  66. ===============================================================================
  67.  
  68. If you would like to open a window with a drop down of players and an input box (reason or number) when clicked:
  69. For the [Function of button] argument, use:
  70.  
  71. function() OpenPlyReasonBox( [Title of dialog box], [Subheading over dropdown], [Subheading over input box], [Command] ) end
  72.  
  73. ===============================================================================
  74.  
  75. */
  76.  
  77. WEB_BUTTONS = {}
  78. MONEYCMD_BUTTONS = {}
  79. RPCMD_BUTTONS = {}
  80. CPCMD_BUTTONS = {}
  81. MAYORCMD_BUTTONS = {}
  82. OTHERCMD_BUTTONS = {}
  83.  
  84. local function AddSidebarButton( n, f )
  85. table.insert(WEB_BUTTONS, { Title = n, Func = f } )
  86. end
  87.  
  88. local function MenuAddMButton( n, f )
  89. table.insert(MONEYCMD_BUTTONS, { NAME = n, FUNC = f } )
  90. end
  91.  
  92. local function MenuAddRPButton( n, f )
  93. table.insert(RPCMD_BUTTONS, { NAME = n, FUNC = f } )
  94. end
  95.  
  96. local function MenuAddCPButton( n, f )
  97. table.insert(CPCMD_BUTTONS, { NAME = n, FUNC = f } )
  98. end
  99.  
  100. local function MenuAddMayorButton( n, f )
  101. table.insert(MAYORCMD_BUTTONS, { NAME = n, FUNC = f } )
  102. end
  103.  
  104. local function MenuAddOtherButton( n, f )
  105. table.insert(OTHERCMD_BUTTONS, { NAME = n, FUNC = f } )
  106. end
  107.  
  108. --Add Buttons below the divider, web URLs must start with "http://"!
  109. AddSidebarButton( "Foro", function() OpenWebpage( "http://www.google.com" ) end )
  110. AddSidebarButton( "Donar", function() OpenWebpage( "http://www.google.com" ) end )
  111.  
  112. --First Section
  113. MenuAddMButton( "Dar Dinero a la Persona a la que Miras", function() OpenTextBox( "Dar Dinero", "Cuanto dinero le quieres dar a esa persona?", "/give" ) end )
  114. MenuAddMButton( "Tirar Dinero", function() OpenTextBox( "Tirar Dinero", "Cuanto dinero quieres soltar?", "/moneydrop" ) end )
  115. --MenuAddMButton( "Buy Health", function() RunConsoleCommand( "say", "/buyhealth" ) end )
  116.  
  117. --Second Section
  118. MenuAddRPButton( "Cambiar tu Nombre de Roleplay", function() OpenTextBox( "Cambiar Nombre", "Coloca el nombre aqui:", "/rpname" ) end )
  119. MenuAddRPButton( "Dormirse/Despertarse", function() RunConsoleCommand( "say", "/sleep" ) end )
  120. MenuAddRPButton( "Soltar tu arma", function() RunConsoleCommand( "say", "/drop" ) end )
  121. MenuAddRPButton( "Pedir una licensia", function() RunConsoleCommand( "say", "/requestlicense" ) end )
  122. 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 )
  123. MenuAddRPButton( "Vender todas tus puertas", function() RunConsoleCommand( "say", "/unownalldoors" ) end )
  124.  
  125. 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 )
  126. 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 )
  127. 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 )
  128.  
  129. 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 )
  130. 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 )
  131. 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 )
  132. MenuAddMayorButton( "Iniciar un LockDown", function() RunConsoleCommand( "say", "/lockdown" ) end )
  133. MenuAddMayorButton( "Terminar un LockDown", function() RunConsoleCommand( "say", "/unlockdown" ) end )
  134. MenuAddMayorButton( "Colocar el tablero de las leyes", function() RunConsoleCommand( "say", "/placelaws" ) end )
  135. MenuAddMayorButton( "Agregar una nueva ley", function() OpenTextBox( "Agregar leyes", "Introduce la nueva ley aqui:", "/addlaw" ) end )
  136.  
  137. 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