JUNIORCEDE1

Untitled

Nov 27th, 2016
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.90 KB | None | 0 0
  1. GM = ""
  2. GMAnterior=""
  3.  
  4. VIP ={}
  5.  
  6. VIP["Funciones"]={}
  7.  
  8. addEvent( "actualizarModo", true )
  9.  
  10. addEventHandler("onClientResourceStart", resourceRoot,
  11.     function()
  12.     local screenW, screenH = guiGetScreenSize()
  13.         VIP[1] = guiCreateWindow((screenW - 578) / 2, (screenH - 243) / 2, 578, 243, "PANEL VIP MEMBER MJ", false)
  14.         guiWindowSetSizable(VIP[1], false)
  15.  
  16.         VIP[2] = guiCreateTabPanel(10, 22, 558, 211, false, VIP[1])
  17.  
  18.         VIP[3] = guiCreateTab("General", VIP[2])
  19.  
  20.         VIP[4] = guiCreateLabel(10, 14, 211, 28, "Nick/Cuenta: ", false, VIP[3])
  21.         VIP[5] = guiCreateLabel(10, 52, 211, 28, "Dinero: ", false, VIP[3])
  22.         VIP[9] = guiCreateEdit(8, 123, 443, 34, "", false, VIP[3])
  23.         VIP[10] = guiCreateButton(457, 119, 91, 38, "Anunciar", false, VIP[3])
  24.         guiSetProperty(VIP[10], "NormalTextColour", "FFAAAAAA")
  25.         VIP[10]:setData("Trigger","Anunciar")
  26.         VIP[8] = guiCreateLabel(14, 85, 419, 34, "Escribe tu anuncio VIP", false, VIP[3])
  27.         guiLabelSetHorizontalAlign(VIP[8], "center", false)
  28.         VIP[6] = guiCreateLabel(294, 14, 211, 28, "Tiempo restaste VIP", false, VIP[3])
  29.         VIP[7] = guiCreateLabel(294, 52, 211, 28, "GameMode Actual: ", false, VIP[3])    
  30.     end
  31. )
  32.  
  33. function CambioModo(Gamemode ,InfoGui)
  34.  
  35.     GMAnterior = GM
  36.     GM = Gamemode
  37.    
  38.     if VIP["Funciones"][GMAnterior] then
  39.         for index,gui in pairs(VIP["Funciones"][GMAnterior]) do
  40.             gui:destroy()
  41.         end
  42.     end
  43.     VIP["Funciones"][GM]={}
  44.     for idex,gui in pairs(InfoGui) do
  45.         if InfoGui.tipo == "tab" then
  46.             VIP["Funciones"][GM][InfoGui.nombre] = guiCreateTab(InfoGui.nombre, VIP[2])
  47.         elseif = "" then
  48.        
  49.         elseif InfoGui.tipo == "button" then
  50.             VIP["Funciones"][GM][InfoGui.nombre] = guiCreateButton(InfoGui.X, InfoGui.Y, InfoGui.height, InfoGui.width, "Anunciar", false, InfoGui.onGui)
  51.             VIP["Funciones"][GM][InfoGui.nombre]:setData("Trigger",InfoGui.trigger)
  52.         end
  53.     end
  54. end
Add Comment
Please, Sign In to add comment