-
Posts
1,390 -
Joined
-
Last visited
-
Days Won
1
Everything posted by HunT
-
Non credo sia fattibile cosa? Edita questa : https://community.multitheftauto.com/in ... ls&id=3472
-
Dai un occhiata a qualche script nella community, le classiche script per rpg. Il funzionamento è lo stesso,solo che deve funzionare quando entri nell hunter. Quindi quando entri nell hunter puoi usate setElementData player hunter true e quando esci setti il false. Poi prendi lo script rpg e fai il check hunter If getElementData bla bla bla. Rispondo con l iPhone non posso darti altri esempi. Se inizi la script posso aiutarti.
-
it's possible but is not easy : Example : function enable ( ) addEventHandler ( "onClientRender", getRootElement(), getSpeed ) end addEventHandler ("onClientVehicleEnter", getRootElement(), enable) function disable ( ) removeEventHandler ( "onClientRender", getRootElement(),getSpeed ) end addEventHandler("onClientVehicleExit", getRootElement(), disable) function getSpeed () sx, sy, sz = getElementVelocity (getPedOccupiedVehicle(localPlayer)) speed = math.floor(((sx^2 + sy^2 + sz^2)^(0.5))*180) end function playSoundSpeed () -- need onClientRender if speed == 0 then -- play sound elseif speed > 2 then -- play sound gear 1 -- etc...
-
https://wiki.multitheftauto.com/wiki/OnClientRender ??
-
Delete the client files here : MTA San Andreas / mods / deathmatch /resource Try again (sure work)
-
Great job usefull.
-
stai riaprendo i PRO| ? Demolition Derby
-
Live This : https://community.multitheftauto.com/ind ... ls&id=3972 If u want I can remove the label "st3reo script"
-
Attualmente sto lavorando per un nuovo server (race),se proprio mi va Di ammazzare 2 zombie ho black ops 2 : D
-
ç_ç Cosa? Se mi trovi un post contenente una funzione scritta da te ti chiedo scusa. Sinceramente ne dubito
-
Images about "All resources and scripts are made by step " ?
-
https://wiki.multitheftauto.com/wiki/Settings_system Cau u use : get set
-
Si ma se ci fai caso nelle risorse gia cè una risorsa che si chiama headshot -.- Puoi editare quella
-
Sono qui per questo,anzi mi fa molto piacere aiutarti visto che sei quasi l'unico a scrivere le funzioni da solo (a parte me ).
-
Ovviamente function sniperSound ( _, keyState ) local giocatore = getLocalPlayer() local arma = getPedWeapon(giocatore) if (isPedOnGround(giocatore)) and arma == 34 then if ( keyState == "down" ) then battito = playSound("heartbeat.wav", true) elseif ( keyState == "up" ) then stopSound ( battito ) end end end bindKey ( "mouse2", "both", sniperSound)
-
Posta la risorsa che hai fatto fin ora qui o in PM te la finisco io. i snipers pro sparano al volo
-
Giusto. La tua soluzione è un po' scontata. Con il setTimer la funzione circola sempre e questo può causare lag,invece con il bindkey la funzione parte solo se premi il tasto. Quindi io ti consiglierei di fare per prima cosa le due funzioni enableSound disableSound Poi fai la funzione funzione principale. Quindi se hai l arma specifica bindkey enableSound unbindkey disableSound. Però se proprio vuoi imitare call of duty fallo per bene ;D Ovvero,se premi il tasto destro si mette a mirare e fai partire un suono di fondo + fai muovere la camera,se premi maiuscolo si ferma la camera e parte il battito. Se ti serve una mano basta dirlo.
-
Che soddisfazione vedere un altro italiano che scrive funzioni Ad esser sincero avevo in mente un altra soluzione basata sul bindkey "down" e "up" Se hai risolto mi fa piacere.
-
Altre informazioni ? Cmq visto che devi usare il mouse destro per mirare io inizierei da qui. Poi fai il controllo Dell arma e se hai ad esempio il cecchino ti parte il suono,se hai un altra arma non suona. Se inizi la script posso aiutarti,ma se devo fartela io puoi scordartelo Ho dei brutti precedenti. Tipo un frocio di merda dal nome monty o stolka. Mi fece fare una script ed ora la sta vendendo. Vendendo per modo di dire.
-
Download? Sure no. Anyway I never make this or test,but maybe is easy. Set the server in editor mode and show the panel on player join. Select the map and call the function "test map" like in map editor.
-
Tnx V2 Soon with last winner name and flag country.
-
U not need the rotation of player but getCameraMatrix
-
Get and Set the rotation to minigunOne with onClientRender.
-
Can u Edit My Maverick Minigun : addEventHandler("onClientVehicleEnter", root, function(thePlayer, seat) local theVehicle = source if seat == 0 and thePlayer == localPlayer and getElementModel(theVehicle) == 487 then local x, y, z = getElementPosition ( theVehicle ) local rx, ry, rz = getElementRotation ( theVehicle ) minigunOne = createWeapon ( "minigun", x, y, z ) minigunTwo = createWeapon ("minigun", x, y, z ) setElementAlpha ( minigunOne,0) setElementAlpha ( minigunTwo,0) attachElements ( minigunOne, theVehicle, 1.15, 2, -1.3, 0, 0, 93 ) attachElements ( minigunTwo, theVehicle, -1.15, 2, -1.3, 0, 0, 93 ) bindKey ( "mouse1", "down", enableFire ) bindKey ( "mouse1", "up", disableFire ) end end ) addEventHandler("onClientVehicleExit", root, function(thePlayer, seat) local theVehicle = source if seat == 0 and thePlayer == localPlayer and getElementModel(theVehicle) == 487 then if minigunOne and minigunTwo then destroyElement (minigunOne) destroyElement (minigunTwo) unbindKey ( "mouse1", "down", enableFire ) unbindKey ( "mouse1", "up", disableFire ) end end end ) function enableFire() if isTimer(MGtimer) and isTimer(MG2timer) and minigunOne and minigunTwo then killTimer(MGtimer) killTimer(MG2timer) else MGtimer = setTimer(function() setWeaponState ( minigunOne, "firing" ) end, 50, 1) MG2timer = setTimer(function() setWeaponState ( minigunTwo, "firing" ) end, 50, 1) MiniSound = playSound ( "Pro_Minigun.wav",true) setSoundVolume(MiniSound, 0.4) setSoundEffectEnabled(MiniSound,"gargle",true) setSoundSpeed ( MiniSound, 0.9 ) end end function disableFire() if isTimer(MGtimer) and isTimer(MG2timer) and minigunOne and minigunTwo then killTimer(MGtimer) killTimer(MG2timer) else MGtimer = setTimer(function() setWeaponState ( minigunOne, "ready" ) end, 50, 1) MG2timer = setTimer(function() setWeaponState ( minigunTwo, "ready" ) end, 50, 1) stopSound ( MiniSound ) end end Need Edit : getElementModel(theVehicle) == 487 (487 is maverick u need edit this for other vehicle) attachElements ( minigunOne, theVehicle, 1.15, 2, -1.3, 0, 0, 93 ) position minigun 1 attachElements ( minigunTwo, theVehicle, -1.15, 2, -1.3, 0, 0, 93 ) position minigun 2 Full Resource : http://www.mediafire.com/?d610bys9l88jvre
