devildead622 Posted March 26, 2013 Share Posted March 26, 2013 I made a panel vip by GUIEditor, but I can not open when using this form: (PS: after then I put the functions of each button) GUIEditor = { staticimage = {}, tabpanel = {}, label = {} } function paineldovip(player) local accName = getAccountName ( getPlayerAccount ( player ) ) painelvip = guiCreateWindow(270, 120, 488, 504, "Painel Vip", false) guiWindowSetSizable(painelvip, false) botaofechar = guiCreateButton(641, 124, 107, 15, "Fechar", false) GUIEditor.tabpanel[1] = guiCreateTabPanel(10, 154, 468, 340, false, painelvip) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Vip" ) ) then tabvipbasic = guiCreateTab("Vip Basic", GUIEditor.tabpanel[1]) kitbasic1 = guiCreateButton(12, 10, 439, 15, "Kit Vip 1", false, tabvipbasic) kitbasic2 = guiCreateButton(10, 60, 443, 15, "Kit Vip 2", false, tabvipbasic) kitmedic = guiCreateButton(8, 110, 443, 15, "Kit Vip Medic", false, tabvipbasic) GUIEditor.label[1] = guiCreateLabel(22, 35, 421, 15, "1xMP5 1xCountry Rifle 300xSmg Ammo 20xSniper Ammo", false, tabvipbasic) GUIEditor.label[2] = guiCreateLabel(18, 135, 421, 15, "1xMedic Kit 1xPizza 1xMilk", false, tabvipbasic) GUIEditor.label[3] = guiCreateLabel(20, 85, 421, 15, "1xM4 1xSniper Rifle 300xAssault Ammo 100xSniperr Ammo", false, tabvipbasic) bike = guiCreateButton(10, 160, 443, 15, "Bike Vip", false, tabvipbasic) GUIEditor.label[4] = guiCreateLabel(18, 185, 421, 15, "1xBike", false, tabvipbasic) elseif isObjectInACLGroup ("user."..accName, aclGetGroup ( "VipGold" ) ) then tabvipgold = guiCreateTab("Vip Gold", GUIEditor.tabpanel[1]) kitgold1 = guiCreateButton(10, 10, 443, 15, "Kit Gold 1", false, tabvipgold) kitgold2 = guiCreateButton(10, 60, 443, 15, "Kit Gold 2", false, tabvipgold) kitmedicogold = guiCreateButton(10, 110, 443, 15, "Kit Medico", false, tabvipgold) kitgolditens = guiCreateButton(6, 160, 443, 15, "Kit Itens", false, tabvipgold) GUIEditor.label[5] = guiCreateLabel(10, 35, 434, 15, "1xMP5 | 1xSniper Amno | 300xSmg Ammo | 20xSniper Ammo", false, tabvipgold) GUIEditor.label[6] = guiCreateLabel(10, 235, 434, 15, "1xBike", false, tabvipgold) GUIEditor.label[7] = guiCreateLabel(10, 185, 434, 15, "1xGPS | 1xMap | 1xToolbox | 1xWatch | 1xRadio Devide", false, tabvipgold) GUIEditor.label[8] = guiCreateLabel(9, 85, 434, 15, "1xM4 | 1xSniper Rifle | 300xAssault Ammo | 100xSniper Ammo", false, tabvipgold) GUIEditor.label[9] = guiCreateLabel(10, 135, 434, 15, "1xMedic Kit | 1xMorphine | 1xPizza | 1xMilk", false, tabvipgold) bikevipgold = guiCreateButton(6, 210, 443, 15, "Bike Vip", false, tabvipgold) elseif isObjectInACLGroup ("user."..accName, aclGetGroup ( "VipPremiun" ) ) then tabvippremiun = guiCreateTab("Vip Premiun", GUIEditor.tabpanel[1]) kitpremiunitens = guiCreateButton(10, 260, 448, 15, "Kit Itens", false, tabvippremiun) kitpremiunbolsas = guiCreateButton(10, 210, 448, 15, "Kit Bolsas", false, tabvippremiun) kitpremiunmedico = guiCreateButton(10, 160, 448, 15, "Kit Medico", false, tabvippremiun) kitpremiunsniper = guiCreateButton(10, 110, 448, 15, "Kit Sniper", false, tabvippremiun) kitpremiun2 = guiCreateButton(10, 60, 448, 15, "Kit Premiun 2", false, tabvippremiun) GUIEditor.label[10] = guiCreateLabel(10, 285, 438, 15, "1xGPS | 1xToolbox | 1xMap | 1xWatch | 1xInfrared Google | 1xRadio Devide", false, tabvippremiun) GUIEditor.label[11] = guiCreateLabel(10, 235, 438, 15, "1xAlice Backpack | 1xTent", false, tabvippremiun) GUIEditor.label[12] = guiCreateLabel(10, 185, 438, 15, "1xMedic Kit | 1xMorphine | 1xPizza | 1xMilk", false, tabvippremiun) GUIEditor.label[13] = guiCreateLabel(10, 135, 438, 15, "1xSniper | 1xSniper Skin | 100xSniper Ammo", false, tabvippremiun) GUIEditor.label[14] = guiCreateLabel(10, 85, 438, 15, "1xM4 | 1xSniper Rifle | 300xAssault Ammo | 100xSniper Ammo", false, tabvippremiun) kitpremiun1 = guiCreateButton(10, 10, 448, 15, "Kit Premiun 1", false, tabvippremiun) GUIEditor.label[15] = guiCreateLabel(10, 35, 438, 15, "1xMP5 | 1xSniper Rifle | 300xSmg Ammo | 20xSniper Ammo", false, tabvippremiun) tabvippremiun2 = guiCreateTab("Vip Premiun pagina 2", GUIEditor.tabpanel[1]) kitpremiuindustrial = guiCreateButton(9, 11, 448, 15, "Kit Industrial", false, tabvippremiun2) motopremiun = guiCreateButton(9, 111, 448, 15, "Moto Vip", false, tabvippremiun2) GUIEditor.label[16] = guiCreateLabel(11, 136, 447, 15, "1xSanchez", false, tabvippremiun2) GUIEditor.label[17] = guiCreateLabel(10, 86, 447, 15, "1xBike", false, tabvippremiun2) bikevippremiun = guiCreateButton(10, 61, 448, 15, "Bike Vip", false, tabvippremiun2) GUIEditor.label[18] = guiCreateLabel(9, 36, 447, 15, "1xEngine | 2xTire", false, tabvippremiun2) GUIEditor.staticimage[1] = guiCreateStaticImage(10, 28, 468, 116, ":vip.png", false, painelvip) else outputChatBox ( "#ff0000 Voce nao e um VIP!", player, 255,0,0, true) end end addCommandHandler("painelvip",paineldovip) Link to comment
iPrestege Posted March 26, 2013 Share Posted March 26, 2013 You cant get account client side! Link to comment
PaiN^ Posted March 26, 2013 Share Posted March 26, 2013 Use triggerServerEvent and addEvent and addEventHandler Link to comment
devildead622 Posted March 26, 2013 Author Share Posted March 26, 2013 Use triggerServerEvent and addEvent and addEventHandler I tried some ways but not able to use properly! You can help-me? How to use? Link to comment
iPrestege Posted March 26, 2013 Share Posted March 26, 2013 You want to show the gui for some group's only? Link to comment
devildead622 Posted March 26, 2013 Author Share Posted March 26, 2013 yes, each TAB corresponds to 1 group Link to comment
iPrestege Posted March 26, 2013 Share Posted March 26, 2013 Search in this section you will find many people ask like this before! Link to comment
devildead622 Posted March 26, 2013 Author Share Posted March 26, 2013 I could not find, perhaps because it is difficult to find using GOOGLE TRANSLATOR ... if you manage to find me, I thank you ... ^ ^ Link to comment
Smart. Posted March 26, 2013 Share Posted March 26, 2013 I bet your wont understand but you can use getElementData/setElementData to set and get the account name of a player Link to comment
Castillo Posted March 26, 2013 Share Posted March 26, 2013 This should be similar to what you want: viewtopic.php?f=91&t=56089 Link to comment
devildead622 Posted March 26, 2013 Author Share Posted March 26, 2013 I bet your wont understand but you can use getElementData/setElementData to set and get the account name of a player what? Link to comment
devildead622 Posted March 26, 2013 Author Share Posted March 26, 2013 I bet your wont understand but you can use getElementData/setElementData to set and get the account name of a player what? @Solid thank you! I will try, if you have problems, come back here! Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now