THE DARK KING Posted June 15, 2013 Posted June 15, 2013 Salve, ho questo codice: GUIEditor = { button = {}, window = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(0.15, 0.14, 0.69, 0.80, "Give_Panel_DayZ", true) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.button[1] = guiCreateButton(0.02, 0.06, 0.11, 0.09, "Milk", true, GUIEditor.window[1]) GUIEditor.button[2] = guiCreateButton(0.02, 0.17, 0.11, 0.09, "Engine", true, GUIEditor.window[1]) GUIEditor.button[3] = guiCreateButton(0.02, 0.28, 0.11, 0.09, "Tire", true, GUIEditor.window[1]) GUIEditor.button[4] = guiCreateButton(0.02, 0.39, 0.11, 0.09, "Pizza", true, GUIEditor.window[1]) end ) Ora come avrete notato ci sono 4 bottoni, Vorrei in pratica che al click del bottone "Milk" mi faccia questo: setElementData(getPlayerFromName("NOMEPLAYER"),"Milk",1) Al click di quello "Engine": setElementData(getPlayerFromName("NOMEPLAYER"),"Engine",1) E così via... Però c'è bisogno di un pannello a sinistra su cui poter selezionare il nome del player, cosicché s'immetta direttamente nel codice: setElementData(getPlayerFromName("NOMEPLAYER"),"Milk",1) Potreste aiutarmi in questo? Ve ne sarei davvero grato. Grazie
HunT Posted June 16, 2013 Posted June 16, 2013 Non ho capito cosa vuoi fare vuoi usare setElementData a chi preme il bottone oppure tu premi il bottone scegli il nome e fai setElementData nome scelto?
THE DARK KING Posted June 16, 2013 Author Posted June 16, 2013 La risposta alla tua domanda: viewtopic.php?f=91&t=60824
HunT Posted June 16, 2013 Posted June 16, 2013 Si ma hai risolto o no? Perche hai bisogno di usare il setElementData?
THE DARK KING Posted June 16, 2013 Author Posted June 16, 2013 Per givvare al giocatore nella gamemode DayZ, ma ho risolto, dopo varie ricerche ne ho trovato uno già bello e fatto.
☻ᶠᶸᶜᵏᵧₒᵤ☻ Posted June 16, 2013 Posted June 16, 2013 infatti eccolo qua già fatto : http://community.vavegames.net/index.ph ... tem-panel/
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