-
Posts
1,390 -
Joined
-
Last visited
-
Days Won
1
Everything posted by HunT
-
Client : function replaceClothes() local theShader = dxCreateShader( "material/effect.fx", 0, 0, true,"ped") local theTexture = dxCreateTexture( "material/trackytop1pro.png" ) dxSetShaderValue(theShader,"gTexture",theTexture) engineApplyShaderToWorldTexture(theShader,"cj_ped_torso") end addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), replaceClothes) function resetClothes() if theShader then engineRemoveShaderFromWorldTexture ( theShader, "cj_ped_torso" ) end end addEventHandler("onClientResourceStop", getResourceRootElement(getThisResource()),resetClothes ) FX : texture gTexture; technique hello { pass P0 { Texture[0] = gTexture; } } Resource Example : http://www.mediafire.com/download/bhks2 ... lothes.zip ----------------------------- Resource Start replace the texture and resource stop restore the texture.
-
Without debug how can help u? The function how work? Command or resource start or gui element? Anyway check the arguments about dxCreateShader :https://wiki.multitheftauto.com/wiki/DxCreateShader
-
Well More info about anti-decompile and encrypt please.
-
Nice job but u can decompile?
-
Per il momento non si possono usare due differenti model ma solo texture. Quindi non è possibile.
-
Server kreward = 150 function policeJob ( attacker, attackerweapon, bodypart, loss ) if attacker and getElementType(attacker) == "player" then theTeam = getPlayerTeam ( attacker ) local wlevel = getPlayerWantedLevel( source ) theSkin = getElementModel ( attacker ) if (attackerweapon == 3) and (loss > 2 ) and (wlevel > 0) then if getTeamName( theTeam ) == "Police Department" or getTeamName( theTeam ) == "Staff" or getTeamName( theTeam ) == "US Army" or getTeamName( theTeam ) == "US Marines" then setElementPosition ( source, 264.74, 77.69, 1001.03 ) setElementInterior ( source, 6 ) setElementDimension ( source, 3 ) toggleControl(source, "fire", false) toggleControl(source, "next_weapon", false) toggleControl(source, "previous_weapon", false) toggleControl(source, "aim_weapon", false) toggleControl(source, "vehicle_fire", false) theName = getPlayerName ( source ) theCop = getPlayerName ( attacker ) outputChatBox ( "You have been jailed by "..theCop.. " for 5 minutes.", source ) outputChatBox ( "You have jailed "..theName, attacker ) local thisreward = wlevel*kreward givePlayerMoney ( attacker, thisreward ) setPlayerWantedLevel ( source, 0) triggerClientEvent("setMissionTimer", source) end end end end addEventHandler ("onPlayerDamage", getRootElement(), policeJob) Client function startMission() MissionTimer = exports.missionTimer:createMissionTimer ( 300000, true, "%m:%s" , 0.5, 0.5, true, "default-bold", 5, 255, 10, 10 ) addEventHandler ( "onClientMissionTimerElapsed", MissionTimer, freeFromJail) end addEvent("setMissionTimer", true) addEventHandler("setMissionTimer", getLocalPlayer(), startMission) function freeFromJail() if MissionTimer then destroyElement(MissionTimer) setElementPosition ( source, 264.74, 77.69, 1001.03 ) setElementInterior ( source, 0 ) setElementDimension ( source, 0 ) toggleControl(source, "fire", true) toggleControl(source, "next_weapon", true) toggleControl(source, "previous_weapon", true) toggleControl(source, "aim_weapon", true) toggleControl(source, "vehicle_fire", true) end end The mission timer work now but maybe u have other problem in the script.
-
U no need getMissionTimerTime onClientMissionTimerElapsed start the function if the timer is 0 Edit again: u need make the complete script client side. Now i cant give u the example reply with iphone.
-
addEventHandler ( "onClientMissionTimerElapsed", MissionTimer, freeFromJail) Edit: u need make the script client side.
-
Pensandoci bene non vedo come potresti aiutarmi,perche la script lo faccio io,immagini e suoni non ce ne vogliono perche li seleziona il player tramite url. Alla fine quando la finisco in community metto hunterix,dadex. Cmq ci sentiamo su steam stasera e ne parliamo.
-
Meglio su steam
-
Cmq se proprio vuoi trasformare questa resource in qualcosa di unico io ho in mente delle idee che nessuno ha mai fatto. Gia sto creando qualcosa di simile con le skin e weapon. In pratica dai la possibilità al player di personalizzare tutto tramite fetchremote (link immagine e suoni) Se vuoi farlo fammi sapere.
-
Non c era bisogno del credit,cmq aggiungi la descrizione in inglese senó ti danno un rate basso.
-
Messaggi inviati due volte nella chat!
HunT replied to BlackHamm3rJack's topic in Italian / Italiano
Anyway. . . Perche non hai usato il database default di mtasa? È la stessa cosa,solo che e molto più pratico Ad ogni script che farai dovrai sempre aggiornare il database mentre con il default ti basta: AddAccount GetAccountData SetAccountData Vabe ogniuno ha le sue idee. -
Messaggi inviati due volte nella chat!
HunT replied to BlackHamm3rJack's topic in Italian / Italiano
Ad ogni trigger server usa il metodo che ti ho scritto. Dopo ti faccio un esempio ora rispondo con l iphone. -
Try that : http://www.multiupload.com/L0I5EO8NV0 From https://forum.multitheftauto.com/viewtopic.php?f=91&t=31891
-
Messaggi inviati due volte nella chat!
HunT replied to BlackHamm3rJack's topic in Italian / Italiano
Evidentemente hai faillato qualcosa,anche io ho fatto un login panel simile tempo fa. Controlla bene e posta il debug se hai problemi. -
Messaggi inviati due volte nella chat!
HunT replied to BlackHamm3rJack's topic in Italian / Italiano
Forse (sicuro) il problema sta nel triggerServerEvent. invece di usare : triggerServerEvent("loginClient", getRootElement(), nome, pass, getLocalPlayer()) usa : triggerServerEvent("loginClient",getLocalPlayer() , nome, pass) Siccome è un login panel,quindi solo un player sta facendo questa azione,non cè bisogno di usare il getRootElement() su triggerServerEvent Aggiungo che è inutile mettere quelle minchiate punto e virgola alla fine di ogni stringa tipo ; -
This is realy easy if u use the function from the admin panel Gui editor + Admin Panel function
-
"onPlayerPickUpRacePickup" function repeats it self.
HunT replied to -ffs-AbodyRulez's topic in Scripting
ReachHunter = "ON" if ReachHunter == "ON" -- code Here ReachHunter = "OFF" onMapStart ReachHunter = "ON" If u not understand post the code. -
2 solution : 1: Make the function for remove the value in the database. 2: U can remove manual value with sqlite browser in the registy.db
-
Well Maybe Samsung vs Iphone (normal) sure win the samsung. But the iphone with cydia is totally different. This is the example of my 3GS : https://www.youtube.com/watch?v=ggFcs0OQdls I have record the video with cydia app (Display Recorder),and the samsung can't make this. This is the list of my best cydia tweaks. Display Recorder iFile SbSetting Activator AdBlocker Barrel BlurriedNCBackground Cascade Dock Colorize IconRenamer KillBackground Live Battery indicator Masks Safari Download Manager UnlockFX WinterBoard Zeppelin and more apps and tweaks
-
Info about pc version? I have the xbox but is better for pc.
-
IPhone 3GS with cydia (why the iPhone without cydia is a no sense) And Nokia lumia (windows phone = no sense)
