Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- GM = ""
- GMAnterior=""
- VIP ={}
- VIP["Funciones"]={}
- addEvent( "actualizarModo", true )
- addEventHandler("onClientResourceStart", resourceRoot,
- function()
- local screenW, screenH = guiGetScreenSize()
- VIP[1] = guiCreateWindow((screenW - 578) / 2, (screenH - 243) / 2, 578, 243, "PANEL VIP MEMBER MJ", false)
- guiWindowSetSizable(VIP[1], false)
- VIP[2] = guiCreateTabPanel(10, 22, 558, 211, false, VIP[1])
- VIP[3] = guiCreateTab("General", VIP[2])
- VIP[4] = guiCreateLabel(10, 14, 211, 28, "Nick/Cuenta: ", false, VIP[3])
- VIP[5] = guiCreateLabel(10, 52, 211, 28, "Dinero: ", false, VIP[3])
- VIP[9] = guiCreateEdit(8, 123, 443, 34, "", false, VIP[3])
- VIP[10] = guiCreateButton(457, 119, 91, 38, "Anunciar", false, VIP[3])
- guiSetProperty(VIP[10], "NormalTextColour", "FFAAAAAA")
- VIP[10]:setData("Trigger","Anunciar")
- VIP[8] = guiCreateLabel(14, 85, 419, 34, "Escribe tu anuncio VIP", false, VIP[3])
- guiLabelSetHorizontalAlign(VIP[8], "center", false)
- VIP[6] = guiCreateLabel(294, 14, 211, 28, "Tiempo restaste VIP", false, VIP[3])
- VIP[7] = guiCreateLabel(294, 52, 211, 28, "GameMode Actual: ", false, VIP[3])
- end
- )
- function CambioModo(Gamemode ,InfoGui)
- GMAnterior = GM
- GM = Gamemode
- if VIP["Funciones"][GMAnterior] then
- for index,gui in pairs(VIP["Funciones"][GMAnterior]) do
- gui:destroy()
- end
- end
- VIP["Funciones"][GM]={}
- for idex,gui in pairs(InfoGui) do
- if InfoGui.tipo == "tab" then
- VIP["Funciones"][GM][InfoGui.nombre] = guiCreateTab(InfoGui.nombre, VIP[2])
- elseif = "" then
- elseif InfoGui.tipo == "button" then
- VIP["Funciones"][GM][InfoGui.nombre] = guiCreateButton(InfoGui.X, InfoGui.Y, InfoGui.height, InfoGui.width, "Anunciar", false, InfoGui.onGui)
- VIP["Funciones"][GM][InfoGui.nombre]:setData("Trigger",InfoGui.trigger)
- end
- end
- end
Add Comment
Please, Sign In to add comment