☻ᶠᶸᶜᵏᵧₒᵤ☻ Posted June 14, 2013 Share Posted June 14, 2013 Salve a tutti! Da poco ho trovato uno script per dei server DayZ che permette di scegliere la skin femminile o quella maschile di DayZ. Però, provandola ho notato che nn funziona bene, praticamente si può scegliere solo la skin Maschile e nn quella femminile, ed esaminando lo script ho notato che se scegli quella maschile nn ti mette una skin precisa ma quella che avevi già dall'ultima volta che sei entrato. Ora vorrei sapere se potete correggere lo script e fare che se scegli la skin maschile ti mette la skin n° 73, e se scegli la femminile la n° 287 Potete corregere lo script quindi??? Grazie per le risposte Ah ecco i Files: client : function chooseG() background = guiCreateStaticImage(0, 0, 1, 1, "background.png", true) window = guiCreateStaticImage(0.2, 0.125, 0.6, 0.75, "window.png", true,background) male = guiCreateStaticImage(0.1, 0.125, 0.2, 0.6, "male.png", true,window) female = guiCreateStaticImage(0.7, 0.125, 0.2, 0.6, "female.png", true,window) showCursor(true) addEventHandler("onClientGUIClick", male, playerChosen) end function playerChosen() if(source==male)then triggerServerEvent("gender:setGender",localPlayer,1) elseif(source==female)then triggerServerEvent("gender:setGender",localPlayer,0) end destroyElement(background) showCursor(false) end addEvent("gender:chooseGender",true) addEventHandler("gender:chooseGender",root,chooseG) server : function login(oldacc,acc) local gender = getAccountData(acc,"gender") if(gender~=0 and gender~=1)then triggerClientEvent(source,"gender:chooseGender",source) end end addEventHandler('onPlayerLogin', root, login) function setG(gender) -- 1 = male, 0 = female local acc = getPlayerAccount(source) if(acc)then setAccountData(acc,"gender",gender) end end addEvent("gender:setGender",true) addEventHandler("gender:setGender",root,setG) Ah un altra cosa, se leggete che servono le immagini, c'è lo già! Link to comment
HunT Posted June 15, 2013 Share Posted June 15, 2013 Se vuoi che ti aiuto posta l intera risorsa tramite mediafire. Come faccio ad aiutarti se non ho la risorsa. Link to comment
☻ᶠᶸᶜᵏᵧₒᵤ☻ Posted June 15, 2013 Author Share Posted June 15, 2013 Ok, ecco qui il link per scaricare lo script: http://www.mediafire.com/download/l53q5 ... h/DayZ.zip Link to comment
HunT Posted June 15, 2013 Share Posted June 15, 2013 Domani te lo faccio non ho tempo ora Link to comment
HunT Posted June 16, 2013 Share Posted June 16, 2013 Se le immagini sono male e female non capisco perche mi hai dato due ID maschili Anyway : ServerSide : addEventHandler("onPlayerLogin",getRootElement(), function () triggerClientEvent ( "ApriPannello", getRootElement()) end ) Client Side : addEvent("ApriPannello",true) function skinPanel() background = guiCreateStaticImage(0, 0, 1, 1, "background.png", true) window = guiCreateStaticImage(0.2, 0.125, 0.6, 0.75, "window.png", true,background) male = guiCreateStaticImage(0.1, 0.125, 0.2, 0.6, "male.png", true,window) female = guiCreateStaticImage(0.7, 0.125, 0.2, 0.6, "female.png", true,window) showCursor(true) end addEventHandler("ApriPannello",getResourceRootElement(getThisResource()),skinPanel) function onGuiClickSkin (button, state, absoluteX, absoluteY) if (source == male) then setElementModel ( localPlayer,73) showCursor ( false ) guiSetVisible (background,false) elseif (source == female) then setPlayerSkin ( localPlayer, 287) showCursor ( false ) guiSetVisible (background,false) end end addEventHandler ("onClientGUIClick", getRootElement(), onGuiClickSkin) Ecco l'intera script : http://www.mediafire.com/download/ifl9i ... p/Dayz.zip Link to comment
☻ᶠᶸᶜᵏᵧₒᵤ☻ Posted June 16, 2013 Author Share Posted June 16, 2013 ho scritto 2 skin a caso, nn ti preoccupare le cambio io con blocco note. Comunque grazie, funziona, mi serve per il mio server DayZ, l'unico difetto e che se in DayZ trovo per esempio la mimetica militare, e me la voglio mettere nn me la fa mettere, come faccio ad aggiustare questo errore?? Grazie per le risposte Link to comment
THE DARK KING Posted June 16, 2013 Share Posted June 16, 2013 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 Link to comment
HunT Posted June 16, 2013 Share Posted June 16, 2013 beh questo non lo sapevo. Se magari mi passi la gm te la fixo,quello che mi hai chiesto l ho fatto. Link to comment
THE DARK KING Posted June 16, 2013 Share Posted June 16, 2013 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 Link to comment
☻ᶠᶸᶜᵏᵧₒᵤ☻ Posted June 16, 2013 Author Share Posted June 16, 2013 Si grazie King, è come dice KING Link to comment
HunT Posted June 16, 2013 Share Posted June 16, 2013 Non capisco il problema però Con la script che ti ho dato non la cambia la skin? o cosa? Siate chiari Link to comment
THE DARK KING Posted June 16, 2013 Share Posted June 16, 2013 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 Link to comment
xShocKz Posted June 16, 2013 Share Posted June 16, 2013 mi sembra abbastanza ovvio... se andate a lavorare su cose che non sono vostre ne troverete di problemi... Link to comment
THE DARK KING Posted June 16, 2013 Share Posted June 16, 2013 E' resuscitato ShockZ capitan ovvio Link to comment
BlueBolt Posted June 17, 2013 Share Posted June 17, 2013 Ehm non potete modificare tutto la GM di DayZ è crepitata quindi non si può modifcare al 100% per modificarla del tutto bisogna comprarla .... Link to comment
HunT Posted June 17, 2013 Share Posted June 17, 2013 Comprare cosa? Siete folli solo a pensare di comprare questa merda Basta un po di esperienza con il lua + slothbot ed è fatta. Solo un vero idiota pagherebbe per questo Link to comment
xShocKz Posted June 17, 2013 Share Posted June 17, 2013 Comprare cosa?Siete folli solo a pensare di comprare questa merda Basta un po di esperienza con il lua + slothbot ed è fatta. Solo un vero idiota pagherebbe per questo Chi non ha esperienza con il lua lo fà. 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