THE DARK KING
Members-
Posts
16 -
Joined
-
Last visited
Details
-
Gang
Mother
THE DARK KING's Achievements
Square (6/54)
0
Reputation
-
Pannello scegli Uomo o Donna [DayZ]
THE DARK KING replied to ☻ᶠᶸᶜᵏᵧₒᵤ☻'s topic in Italian / Italiano
E' resuscitato ShockZ capitan ovvio -
Bad player ponter spawnplayer e togglecontrol
THE DARK KING replied to THE DARK KING's topic in Italian / Italiano
Lho fatto, ho sostituito tutti gli hitPlayer. Lo script continua a funzionare alla perfezione ma mi escono sempre quegli errori una volta che un player ci entra dentro. -
Pannello scegli Uomo o Donna [DayZ]
THE DARK KING replied to ☻ᶠᶸᶜᵏᵧₒᵤ☻'s topic in Italian / Italiano
La skin la cambia perfettamente. Ma, all'interno della gamemode, si possono trovare dei "vestiti" (skin vere e proprie) per la mappa. Racogliendoli, si puo' aprire un menu ed indossarseli. Il problema è che non funziona piu questo, per colpa dello script che hai dato. Il menu funziona, ma i vestiti non si possono indossare. Cioè, hai fatto perfettamente quel che t'aveva chiesto, ma credo che interferisca con la gm. Grazie -
Salve, ho un problema con l'anti-zombie-area modificata da me togliendo che il personaggio della skin errata, entrando nell'area, muoia. Infatti ho messo che viene teletrasportato da un altra parte. Eccola: safecol = createColCuboid ( 1540.1055908203, -1649.2113037109, 12, 70, 50, 100) safeZoneRadar = createRadarArea ( 1540.1055908203, -1649.2113037109, 70, 50, 100, 0, 0, 100 ) setElementData (safeZoneRadar, "zombieProof", true) function enterZone(hitPlayer,thePlayer) local skin = getElementModel (hitPlayer) if ( skin == 73 ) then toggleControl (hitPlayer, "fire", false ) toggleControl (hitPlayer, "aim_weapon", false) toggleControl (hitPlayer, "vehicle_fire", false) outputChatBox(" you entering the area Admin.", hitPlayer, 0, 255, 0) else spawnPlayer ( hitPlayer, 0.0, 0.0, 5.0, 90.0, 0 ) end end addEventHandler( "onColShapeHit", safecol, enterZone ) function leaveZone(hitPlayer,thePlayer) local skin = getElementModel (hitPlayer) toggleControl (hitPlayer, "fire", true) toggleControl (hitPlayer, "aim_weapon", true) toggleControl (hitPlayer, "vehicle_fire", true) outputChatBox(" you out the area Admin", hitPlayer, 255, 0, 0) if not ( skin == 73 ) then spawnPlayer ( hitPlayer, 1529.4919433594, -1626.8739013672, 13.3828125, 90.0, 0 ) end end addEventHandler( "onColShapeLeave", safecol, leaveZone ) Ma ora succede che mi escono questi errori nel dos:
-
Associare una funzione ad un bottone
THE DARK KING replied to THE DARK KING's topic in Italian / Italiano
Per givvare al giocatore nella gamemode DayZ, ma ho risolto, dopo varie ricerche ne ho trovato uno già bello e fatto. -
Pannello scegli Uomo o Donna [DayZ]
THE DARK KING replied to ☻ᶠᶸᶜᵏᵧₒᵤ☻'s topic in Italian / Italiano
Hunterix la gm è tutta codificata, non credo puoi. Comunque, è quella gratuita: http://www.moddb.com/mods/mtadayz/downl ... 056-stable Clicca sul bottone DOWNLOAD NOW! Comunque rispondo io essendo un "collaboratore" di scream98 -
Pannello scegli Uomo o Donna [DayZ]
THE DARK KING replied to ☻ᶠᶸᶜᵏᵧₒᵤ☻'s topic in Italian / Italiano
Cioè scream98 intende che una volta messo lo script di male e female, nella gamemode DayZ c'è un interferenza, e non si puo' piu applicare al player un'altra skin. Cioè, se scegli male ti rimarrà fissa per sempre la skin del maschio, se sceglio female per sempre rimarrà quella della femmina. Invece in gioco si possono trovare vari "cambi skin" che però non funzionano con lo script che hai fatto. Servirebbe anche a me -
Associare una funzione ad un bottone
THE DARK KING replied to THE DARK KING's topic in Italian / Italiano
La risposta alla tua domanda: viewtopic.php?f=91&t=60824 -
Ok, This is the complete gui: GUIEditor = { gridlist = {}, window = {}, button = {} } 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.87, 0.06, 0.11, 0.09, "Milk", true, GUIEditor.window[1]) GUIEditor.button[2] = guiCreateButton(0.87, 0.17, 0.11, 0.09, "Engine", true, GUIEditor.window[1]) GUIEditor.button[3] = guiCreateButton(0.87, 0.28, 0.11, 0.09, "Tire", true, GUIEditor.window[1]) GUIEditor.button[4] = guiCreateButton(0.88, 0.39, 0.11, 0.09, "Pizza", true, GUIEditor.window[1]) GUIEditor.gridlist[1] = guiCreateGridList(0.03, 0.07, 0.45, 0.91, true, GUIEditor.window[1]) guiGridListAddColumn(GUIEditor.gridlist[1], "Player_Name", 0.9) guiGridListAddRow(GUIEditor.gridlist[1]) guiGridListSetItemText(GUIEditor.gridlist[1], 0, 1, "ExampleName", false, false) end ) addEventHandler ("onClientGUIClick", getRootElement(), function () if ( source == GUIEditor.button[1]) then setElementData(getPlayerFromName ("THE_DARK_KING"), "Milk", 1) end end ) addEventHandler ("onClientGUIClick", getRootElement(), function () if ( source == GUIEditor.button[2]) then setElementData(getPlayerFromName ("THE_DARK_KING"), "Engine", 1) end end ) addEventHandler ("onClientGUIClick", getRootElement(), function () if ( source == GUIEditor.button[3]) then setElementData(getPlayerFromName ("THE_DARK_KING"), "Tire", 1) end end ) addEventHandler ("onClientGUIClick", getRootElement(), function () if ( source == GUIEditor.button[4]) then setElementData(getPlayerFromName ("THE_DARK_KING"), "Pizza", 1) end end ) you can do that only admins can use it by typing in chat / give?
-
ok: GUIEditor = { gridlist = {}, window = {}, button = {} } 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.87, 0.06, 0.11, 0.09, "Milk", true, GUIEditor.window[1]) GUIEditor.button[2] = guiCreateButton(0.87, 0.17, 0.11, 0.09, "Engine", true, GUIEditor.window[1]) GUIEditor.button[3] = guiCreateButton(0.87, 0.28, 0.11, 0.09, "Tire", true, GUIEditor.window[1]) GUIEditor.button[4] = guiCreateButton(0.88, 0.39, 0.11, 0.09, "Pizza", true, GUIEditor.window[1]) GUIEditor.gridlist[1] = guiCreateGridList(0.03, 0.07, 0.45, 0.91, true, GUIEditor.window[1]) guiGridListAddColumn(GUIEditor.gridlist[1], "Player_Name", 0.9) guiGridListAddRow(GUIEditor.gridlist[1]) guiGridListSetItemText(GUIEditor.gridlist[1], 0, 1, "ExampleName", false, false) end )
-
yes!
-
Is exact, but can you add a side panel from which to take the names of the players online? So to automatically add the name of the player instead of NAMEPLAYER I'm italian
-
i want to take the name of a player through a left side panel, and once selected using one of the buttons mentioned before with their respective functions. Type: setElementData (getPlayerFromName ("NAMEPLAYER"), "Engine", 1) where engine is an object present in DayZ and 1 is the quantity
-
No... Can you scripting?
-
Hi, I have this code: 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 ) Now as you may have noticed there are 4 buttons, I would like to practice that at the click of the button "Milk" I do this: setElementData(getPlayerFromName ("NAMEPLAYER"), "Milk", 1) At the click of the "Engine": setElementData(getPlayerFromName ("NAMEPLAYER"), "Engine", 1) And so on ... But we need a panel to the left of where you can select the name of the player, so it enter directly in the code: setElementData (getPlayerFromName (" NAMEPLAYER[/ color]"), "Milk", 1) Could you help me with that? I'd be really grateful. thanks P.S: sorry for my bad english, beacause i'm not english.