#Whit3^ Posted November 22, 2012 Posted November 22, 2012 [FUORI PROBLEMA] E rieccomi qui dall'ultima volta che mi avete aiutato non mi avete fatto formulare bene la frase cmq era tutto merito di Hunter (L'hai fatto tu? Ma Bravo . . . Quindi d' ora in poi non ti aiuterò più Non solo perdo tempo a farti lo script non dici neanche grazie e dici " l'ho rifatto io" ,ma che gentaglia. cit.Hunter se hai chiuso non potevo scriverti meglio... volevo dire che sono riuscito ad implementarlo (grazie a te)perchè mi sostituiva delle cose nel race.. cmq GRZ) [NEL PROBLEMA] Vabbè Torniamo hai fatti.. Sto uscendo veramente pazzo da fare un horn-shop panel. CI provo ma non riesco... qualche consiglio grz anticipatamente. p.s non chiedetemi pkè ho scritto [FUORI PROBLEMA] e [NEL PROBLEMA] asd
#Whit3^ Posted November 23, 2012 Author Posted November 23, 2012 -- TAB 7 - Horns ScrollPaneShaders = guiCreateScrollPane( 0.05, 0.05, 0.9, 0.9, true, Tab[7]) function getPurchasedHorns(thePlayer) local airhorn = tonumber(loadPlayerData(thePlayer,"horn1")) local clown = tonumber(loadPlayerData(thePlayer,"horn2")) local train = tonumber(loadPlayerData(thePlayer,"horn3")) local ship = tonumber(loadPlayerData(thePlayer,"horn4")) local submarine = tonumber(loadPlayerData(thePlayer,"horn5")) local military = tonumber(loadPlayerData(thePlayer,"horn6")) local whoopie = tonumber(loadPlayerData(thePlayer,"horn7")) callClientFunction(thePlayer,"updateHorns",thePlayer,airhorn,clown,train,ship,submarine,military,whoopie) end function purchaseHorn(thePlayer,horn,hornName) local playerCash = tonumber(loadPlayerData(thePlayer,"cash")) local playerLevel = tonumber(loadPlayerData(thePlayer,"level")) local checkOwnership = tonumber(loadPlayerData(thePlayer,"horn"..horn)) if checkOwnership == 0 then if playerLevel >= hornLevel then if playerCash >= hornPrice[horn] then savePlayerData(thePlayer,"cash",playerCash-hornPrice[horn]) savePlayerData(thePlayer,tostring("horn"..horn),1) getPurchasedHorns(thePlayer) scoreboardRefresh(thePlayer) achievement39(thePlayer) outputChatBox("#FF6600* #FFFFFFYou have purchased the #ABCDEF"..hornName.."#FFFFFF horn for #ABCDEF$"..hornPrice[horn].."#FFFFFF!",thePlayer,255,255,255,true) else outputChatBox("#FF6600* #FFFFFFERROR! You don't have enough money!",thePlayer,255,255,255,true) end else outputChatBox("#FF6600* #FFFFFFERROR! You need to be level #ABCDEF"..hornLevel.."#FFFFFF or higher to purchase new horns!",thePlayer,255,255,255,true) end else outputChatBox("#FF6600* #FFFFFFERROR! You already own this horn!",thePlayer,255,255,255,true) end end function checkForPurchasedHorn(thePlayer,horn) local hornStatus = tonumber(loadPlayerData(thePlayer,"horn"..horn)) if hornStatus == 1 then callClientFunction(thePlayer,"setHorn",horn) else outputChatBox("#FF6600* #FFFFFFERROR! You do not own this horn!",thePlayer,255,255,255,true) end end function getLastSetHorn(thePlayer) local horn = tonumber(loadPlayerData(thePlayer,"lastSetHorn")) callClientFunction(thePlayer,"setLastUsedHorn",horn) end function setLastSetHorn(thePlayer,horn) savePlayerData(thePlayer,"lastSetHorn",horn) end function toggleHornControl() for _,player in ipairs(getElementsByType("player")) do if loadPlayerData(player,"lastSetHorn") == 0 then setTimer(toggleControl,2000,1,player,"horn",true) else setTimer(toggleControl,2000,1,player,"horn",false) end end end addEvent("onMapStarting",true) addEventHandler("onMapStarting",getRootElement(),toggleHornControl) function toggleControlOnReady() if loadPlayerData(source,"lastSetHorn") == 0 then toggleControl(source,"horn",true) else toggleControl(source,"horn",false) end end addEventHandler("onNotifyPlayerReady",getRootElement(),toggleControlOnReady) function playHornForAllClients(horningPlayer,hornSoundPath,cSetHornSound) -- This function passes on the horn to all players. triggerClientEvent(getRootElement(),"onRecieveHorn",horningPlayer,horningPlayer,hornSoundPath,cSetHornSound) end HO provato a fare cosi...
HunT Posted November 23, 2012 Posted November 23, 2012 Il codice che hai postato non ha senso. Spiegami dettagliatamente cosa vuoi fare. Vuoi che un player puo personalizzare il clakson tramite un pannello? inizia a postare qui i suoni e poi vediamo.
#Whit3^ Posted November 23, 2012 Author Posted November 23, 2012 Si.. Grazie.Cmq vorrei che sia implementato nell'userpanel non a parte - IL client stats del pannello è questo : http://www.mediafire.com/?e0u992v2os5ahao - se ti serve anche lo stats-server-lua dimmelo Suoni-Horns : http://www.mediafire.com/?p150z5ds0ej2ujr
HunT Posted November 23, 2012 Posted November 23, 2012 Si.. Grazie.Cmq vorrei che sia implementato nell'userpanel non a parte - IL client stats del pannello è questo : http://www.mediafire.com/?e0u992v2os5ahao - se ti serve anche lo stats-server-lua dimmelo Suoni-Horns : http://www.mediafire.com/?p150z5ds0ej2ujr ovvio che mi server il server side come faccio a vedere come prendere e togliere i soldi. il client side non mi serve.
#Whit3^ Posted November 23, 2012 Author Posted November 23, 2012 Scusa colpo di noob ecco qui http://www.mediafire.com/?t74y5kqs02x9aii
HunT Posted November 24, 2012 Posted November 24, 2012 Si puo fare ma ho bisogno di tempo,sinceramente dubito che qualcun'altro ti faccia questo,pero a me mi diverte fare le script Quindi dammi tempo. Vuoi che si apra con un comando o bindkey?
HunT Posted November 24, 2012 Posted November 24, 2012 Hai il pannello di puma lo conosco Usa un metodo di merda per salvare ovvero .xml
#Whit3^ Posted November 24, 2012 Author Posted November 24, 2012 Hai presente accanto alla finestra shader? non so se lo hai aperto... vabbè accanto a shader ci deve esse scritto horn e compri e tt cmq lo avevo fatto la finestrella ma dentro non usciva nnt
HunT Posted November 25, 2012 Posted November 25, 2012 Quindi vuoi integrare l horn nel tuo panel, tuo per modo di dire Ci vorrà un intera giornata, non vedo il motivo perché dovrei perderla Anche perché sto letteralmente azzeccando su black ops 2 Ma non siete stufi di giocare ancora a mtasa?
HunT Posted November 26, 2012 Posted November 26, 2012 Sia Per Play Station 3 e Pc ASD Non ha senso ma vabè Aggiungimi su steam nome : Hunterix
HunT Posted December 1, 2012 Posted December 1, 2012 Msn ma non ci entro mai. Aggiungimi su steam Sto creando un Vehicle flag. In pratica al posto della targa si vede la bandiera di provenienza
#Whit3^ Posted December 1, 2012 Author Posted December 1, 2012 (edited) Fai una cosa perchè non fai meglio sta cosa? o magari vicino al nome c'è la bandiera è piu bello ASD Edited December 1, 2012 by Guest
HunT Posted December 1, 2012 Posted December 1, 2012 e lui cosa ha detto? Ma cos'e Tardo? Lagga forse.
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