Guest User

Untitled

a guest
Feb 4th, 2016
643
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.91 KB | None | 0 0
  1.  
  2. unfuck = function(l_1_0)
  3. local l_1_1 = string.gsub
  4. local l_1_2 = l_1_0
  5. local l_1_3 = "(#%x%x%x%x%x%x)"
  6. local l_1_4 = function(l_1_0)
  7. return ""
  8. end
  9. return l_1_1(l_1_2, l_1_3, l_1_4)
  10. end
  11.  
  12. onDonoComandoVermelhoButtonClick = function()
  13. local l_2_0, l_2_1 = guiGridListGetSelectedItem(playerList)
  14. if l_2_0 == -1 or l_2_1 == -1 then
  15. return
  16. end
  17. local l_2_2 = guiGridListGetItemText(playerList, l_2_0, l_2_1)
  18. local l_2_3 = getPlayerFromName(l_2_2)
  19. if l_2_3 then
  20. triggerServerEvent("mudarPlayerParaGrupoCV", getLocalPlayer(), l_2_3, "Dono Comando Vermelho")
  21. end
  22. end
  23.  
  24. onSubDonoComandoVermelhoButtonClick = function()
  25. local l_3_0, l_3_1 = guiGridListGetSelectedItem(playerList)
  26. if l_3_0 == -1 or l_3_1 == -1 then
  27. return
  28. end
  29. local l_3_2 = guiGridListGetItemText(playerList, l_3_0, l_3_1)
  30. local l_3_3 = getPlayerFromName(l_3_2)
  31. if l_3_3 then
  32. triggerServerEvent("mudarPlayerParaGrupoCV", getLocalPlayer(), l_3_3, "SubDono Comando Vermelho")
  33. end
  34. end
  35.  
  36. onBracoDireitoDoDonoComandoVermelhoButtonClick = function()
  37. local l_4_0, l_4_1 = guiGridListGetSelectedItem(playerList)
  38. if l_4_0 == -1 or l_4_1 == -1 then
  39. return
  40. end
  41. local l_4_2 = guiGridListGetItemText(playerList, l_4_0, l_4_1)
  42. local l_4_3 = getPlayerFromName(l_4_2)
  43. if l_4_3 then
  44. triggerServerEvent("mudarPlayerParaGrupoCV", getLocalPlayer(), l_4_3, "Braco Direito Do Dono Comando Vermelho")
  45. end
  46. end
  47.  
  48. onGerenteDaBocaComandoVermelhoButtonClick = function()
  49. local l_5_0, l_5_1 = guiGridListGetSelectedItem(playerList)
  50. if l_5_0 == -1 or l_5_1 == -1 then
  51. return
  52. end
  53. local l_5_2 = guiGridListGetItemText(playerList, l_5_0, l_5_1)
  54. local l_5_3 = getPlayerFromName(l_5_2)
  55. if l_5_3 then
  56. triggerServerEvent("mudarPlayerParaGrupoCV", getLocalPlayer(), l_5_3, "Gerente Da Boca Comando Vermelho")
  57. end
  58. end
  59.  
  60. onTesoureiroComandoVermelhoButtonClick = function()
  61. local l_6_0, l_6_1 = guiGridListGetSelectedItem(playerList)
  62. if l_6_0 == -1 or l_6_1 == -1 then
  63. return
  64. end
  65. local l_6_2 = guiGridListGetItemText(playerList, l_6_0, l_6_1)
  66. local l_6_3 = getPlayerFromName(l_6_2)
  67. if l_6_3 then
  68. triggerServerEvent("mudarPlayerParaGrupoCV", getLocalPlayer(), l_6_3, "Tesoureiro Comando Vermelho")
  69. end
  70. end
  71.  
  72. onAtiradorDeEliteComandoVermelhoButtonClick = function()
  73. local l_7_0, l_7_1 = guiGridListGetSelectedItem(playerList)
  74. if l_7_0 == -1 or l_7_1 == -1 then
  75. return
  76. end
  77. local l_7_2 = guiGridListGetItemText(playerList, l_7_0, l_7_1)
  78. local l_7_3 = getPlayerFromName(l_7_2)
  79. if l_7_3 then
  80. triggerServerEvent("mudarPlayerParaGrupoCV", getLocalPlayer(), l_7_3, "Atirador De Elite Comando Vermelho")
  81. end
  82. end
  83.  
  84. onLadraoComandoVermelhoButtonClick = function()
  85. local l_8_0, l_8_1 = guiGridListGetSelectedItem(playerList)
  86. if l_8_0 == -1 or l_8_1 == -1 then
  87. return
  88. end
  89. local l_8_2 = guiGridListGetItemText(playerList, l_8_0, l_8_1)
  90. local l_8_3 = getPlayerFromName(l_8_2)
  91. if l_8_3 then
  92. triggerServerEvent("mudarPlayerParaGrupoCV", getLocalPlayer(), l_8_3, "Ladrao Comando Vermelho")
  93. end
  94. end
  95.  
  96. onPassaRadioComandoVermelhoButtonClick = function()
  97. local l_9_0, l_9_1 = guiGridListGetSelectedItem(playerList)
  98. if l_9_0 == -1 or l_9_1 == -1 then
  99. return
  100. end
  101. local l_9_2 = guiGridListGetItemText(playerList, l_9_0, l_9_1)
  102. local l_9_3 = getPlayerFromName(l_9_2)
  103. if l_9_3 then
  104. triggerServerEvent("mudarPlayerParaGrupoCV", getLocalPlayer(), l_9_3, "Passa Radio Comando Vermelho")
  105. end
  106. end
  107.  
  108. onPixadorComandoVermelhoButtonClick = function()
  109. local l_10_0, l_10_1 = guiGridListGetSelectedItem(playerList)
  110. if l_10_0 == -1 or l_10_1 == -1 then
  111. return
  112. end
  113. local l_10_2 = guiGridListGetItemText(playerList, l_10_0, l_10_1)
  114. local l_10_3 = getPlayerFromName(l_10_2)
  115. if l_10_3 then
  116. triggerServerEvent("mudarPlayerParaGrupoCV", getLocalPlayer(), l_10_3, "Pixador Comando Vermelho")
  117. end
  118. end
  119.  
  120. onMembroComandoVermelhoButtonClick = function()
  121. local l_11_0, l_11_1 = guiGridListGetSelectedItem(playerList)
  122. if l_11_0 == -1 or l_11_1 == -1 then
  123. return
  124. end
  125. local l_11_2 = guiGridListGetItemText(playerList, l_11_0, l_11_1)
  126. local l_11_3 = getPlayerFromName(l_11_2)
  127. if l_11_3 then
  128. triggerServerEvent("mudarPlayerParaGrupoCV", getLocalPlayer(), l_11_3, "Membro Comando Vermelho")
  129. end
  130. end
  131.  
  132. painel = function()
  133. GUIEditor_Grid = {}
  134. local l_12_0, l_12_1 = guiGetScreenSize()
  135. Window1 = guiCreateWindow((l_12_0 - 500) / 2, (l_12_1 - 400) / 2, 500, 400, "Painel de recrutamento do Comando Vermelho", false)
  136. BracoDireitoDoDonoComandoVermelho = guiCreateButton(18, 80, 86, 40, "Braco Direito Do Dono Comando Vermelho", false, Window1)
  137. guiSetFont(BracoDireitoDoDonoComandoVermelho, "default-bold-small")
  138. guiSetProperty(BracoDireitoDoDonoComandoVermelho, "NormalTextColour", "FF16E6E9")
  139. addEventHandler("onClientGUIClick", BracoDireitoDoDonoComandoVermelho, onBracoDireitoDoDonoComandoVermelhoButtonClick, true)
  140. TesoureiroComandoVermelho = guiCreateButton(18, 130, 86, 40, "Tesoureiro Comando Vermelho", false, Window1)
  141. guiSetFont(TesoureiroComandoVermelho, "default-bold-small")
  142. guiSetProperty(TesoureiroComandoVermelho, "NormalTextColour", "FF16E6E9")
  143. addEventHandler("onClientGUIClick", TesoureiroComandoVermelho, onTesoureiroComandoVermelhoButtonClick, true)
  144. DonoComandoVermelho = guiCreateButton(18, 32, 86, 40, "Dono Comando Vermelho", false, Window1)
  145. guiSetFont(DonoComandoVermelho, "default-bold-small")
  146. guiSetProperty(DonoComandoVermelho, "NormalTextColour", "FF16E6E9")
  147. addEventHandler("onClientGUIClick", DonoComandoVermelho, onDonoComandoVermelhoButtonClick, true)
  148. SubDonoComandoVermelho = guiCreateButton(120, 32, 86, 40, "SubDono Comando Vermelho", false, Window1)
  149. guiSetFont(SubDonoComandoVermelho, "default-bold-small")
  150. guiSetProperty(SubDonoComandoVermelho, "NormalTextColour", "FF16E6E9")
  151. addEventHandler("onClientGUIClick", SubDonoComandoVermelho, onSubDonoComandoVermelhoButtonClick, true)
  152. GerenteDaBocaComandoVermelho = guiCreateButton(120, 80, 86, 40, "Gerente Da Boca Comando Vermelho", false, Window1)
  153. guiSetFont(GerenteDaBocaComandoVermelho, "default-bold-small")
  154. guiSetProperty(GerenteDaBocaComandoVermelho, "NormalTextColour", "FF16E6E9")
  155. addEventHandler("onClientGUIClick", GerenteDaBocaComandoVermelho, onGerenteDaBocaComandoVermelhoButtonClick, true)
  156. AtiradorDeEliteComandoVermelho = guiCreateButton(120, 130, 86, 40, "Atirador De Elite Comando Vermelho", false, Window1)
  157. guiSetFont(AtiradorDeEliteComandoVermelho, "default-bold-small")
  158. guiSetProperty(AtiradorDeEliteComandoVermelho, "NormalTextColour", "FF16E6E9")
  159. addEventHandler("onClientGUIClick", AtiradorDeEliteComandoVermelho, onAtiradorDeEliteComandoVermelhoButtonClick, true)
  160. PixadorComandoVermelho = guiCreateButton(18, 180, 86, 40, "Pixador Comando Vermelho", false, Window1)
  161. guiSetFont(PixadorComandoVermelho, "default-bold-small")
  162. guiSetProperty(PixadorComandoVermelho, "NormalTextColour", "FF16E6E9")
  163. addEventHandler("onClientGUIClick", PixadorComandoVermelho, onPixadorComandoVermelhoButtonClick, true)
  164. LadraoComandoVermelho = guiCreateButton(120, 180, 86, 40, "Ladrao Comando Vermelho", false, Window1)
  165. guiSetFont(LadraoComandoVermelho, "default-bold-small")
  166. guiSetProperty(LadraoComandoVermelho, "NormalTextColour", "FF16E6E9")
  167. addEventHandler("onClientGUIClick", LadraoComandoVermelho, onLadraoComandoVermelhoButtonClick, true)
  168. PassaRadioComandoVermelho = guiCreateButton(18, 230, 86, 40, "Passa Radio Comando Vermelho", false, Window1)
  169. guiSetFont(PassaRadioComandoVermelho, "default-bold-small")
  170. guiSetProperty(PassaRadioComandoVermelho, "NormalTextColour", "FF16E6E9")
  171. addEventHandler("onClientGUIClick", PassaRadioComandoVermelho, onPassaRadioComandoVermelhoButtonClick, true)
  172. MembroComandoVermelho = guiCreateButton(120, 230, 86, 40, "Membro Comando Vermelho", false, Window1)
  173. guiSetFont(MembroComandoVermelho, "default-bold-small")
  174. guiSetProperty(MembroComandoVermelho, "NormalTextColour", "FF16E6E9")
  175. addEventHandler("onClientGUIClick", MembroComandoVermelho, onMembroComandoVermelhoButtonClick, true)
  176. playerList = guiCreateGridList(250, 30, 290, 290, false, Window1)
  177. local l_12_2 = guiGridListAddColumn(playerList, "Jogadores", 0.9)
  178. for l_12_6,l_12_7 in ipairs(getElementsByType("player")) do
  179. local l_12_8 = guiGridListAddRow(playerList)
  180. guiGridListSetItemText(playerList, l_12_8, l_12_2, getPlayerName(l_12_7), false, false)
  181. guiGridListSetItemColor(playerList, l_12_8, l_12_2, 255, 0, 0, 255)
  182. end
  183. guiCreateStaticImage(10, 320, 90, 100, "CV.png", false, Window1)
  184. fechar = guiCreateButton(300, 350, 100, 35, "Fechar", false, Window1)
  185. guiSetVisible(Window1, false)
  186. addEventHandler("onClientGUIClick", fechar, function()
  187. guiSetVisible(Window1, false)
  188. showCursor(false)
  189. end, false)
  190. end
  191.  
  192. addEventHandler("onClientResourceStart", resourceRoot, painel)
  193. addEvent("CV", true)
  194. CV = function(l_13_0)
  195. local l_13_1 = getPlayerName(l_13_0)
  196. for l_13_5 = 0, guiGridListGetRowCount(playerList) do
  197. if guiGridListGetItemText(playerList, l_13_5, 1) == l_13_1 then
  198. guiGridListSetItemColor(playerList, l_13_5, 250, 50, 50, 250)
  199. end
  200. end
  201. end
  202.  
  203. addEventHandler("CV", getRootElement(), CV)
  204. addEvent("abrirPainelCV", true)
  205. abrirPainelCV = function()
  206. guiSetVisible(Window1, true)
  207. showCursor(true)
  208. triggerServerEvent("CV", getLocalPlayer())
  209. end
  210.  
  211. addEventHandler("abrirPainelCV", getRootElement(), abrirPainelCV)
  212. atualizarlista = function()
  213. guiGridListClear(playerList)
  214. for l_15_3,l_15_4 in ipairs(getElementsByType("player")) do
  215. local l_15_5 = guiGridListAddRow(playerList)
  216. guiGridListSetItemText(playerList, l_15_5, 1, getPlayerName(l_15_4), false, false)
  217. end
  218. end
  219.  
  220. addEventHandler("onClientPlayerJoin", getRootElement(), atualizarlista)
  221. addEventHandler("onClientPlayerQuit", getRootElement(), atualizarlista)
  222. addEventHandler("onClientPlayerChangeNick", getRootElement(), atualizarlista)
Advertisement
Add Comment
Please, Sign In to add comment