Jump to content

2kristof2

Members
  • Posts

    80
  • Joined

  • Last visited

Everything posted by 2kristof2

  1. 2kristof2

    bindKey

    Hi I want to trigger "special_control_up" by pressing lshift. It seems to be easy but i have no idea how to do that..
  2. Nope. I changed "detachTrailerFromVehicle(vehicle)" to setElementVelocity(vehicle,0,0,0.5) and it works only for vehicle without attached trailer.. @Edit I solved the problem
  3. Hello, I wanted to make a bind key but when a trailer is attached to vehicle it doesn't work.. example:
  4. Thank you! The script is simple and effective. @Xeon~ Unfortunately your script doesn't work :c
  5. Hey, I want to make a script which checks every 5 seconds if the player is not cheating. Only 3 vehicles are avaliable 522,411 and 470. Unfair person can easily get a plane or better car by using his admin panel but the script gotta close the door on it. Should i use following functions/events? I tried something like that but it doesn't work: (checking every render)
  6. @Dealman I tried it but somehow it doesn't work @Sasu no problem (you can always test it later)
  7. Yeah i know but the function lasts only 1,4 sec so there is no lags and everything works correctly. Anyway if you have better idea you can write it here . (because your script doesn't work for me )
  8. better but still bad: https://www.youtube.com/watch?v=XAV-jpNw7BU&feature=youtu.be
  9. to make it clear i recorded a short video: https://www.youtube.com/watch?v=x_rishxU4Q4&feature=youtu.be (first jump is ok, but when i hit the marker again I jump too high.
  10. Hi, Here is my script: NumToCount = 0.05 CountSpeed = 100 local b = 0.001 marker = createMarker(5497.0727539063, -2612.5356445313, 7.6, "corona",6, 0, 0, 0, 0) function flying (player) if source == marker then if isPedInVehicle(player) then vehicle=getPedOccupiedVehicle(player) x,y,z = getElementVelocity(vehicle) addEventHandler ( "onClientRender", getRootElement(), MyB) setTimer (function() removeEventHandler ( "onClientRender", getRootElement(), MyB) end, 1100 , 1 ) end end end addEventHandler("onClientMarkerHit", getRootElement(), flying) function MyB ( ) setTimer (function() b = b + 0.0015 end, CountSpeed , NumToCount ) setElementVelocity(vehicle, x,y,b) end My question is how to change local b to the primary value (0.001), because when I hit the marker and hit it again after X seconds I'll get different velocity.. Thanks for help regards, 2kristof2
  11. When i attached col shape with moving object the shape is not moving with the object when i hit col area everything works but it doesn't change a position.
  12. ahh you are right, I'll try to do that. I'll write later if i find a new problem
  13. The problem is that the object which he touch is moving.. Any other ideas?
  14. Hi made a script to kill player when he touch an object. I used col shape because Something like OnClientPedCollision doesn't exist. I'm not a good scripter but i hope you find the errors or tell me a better way to make it Regards, Krzysztof
  15. yea i was trying to use this script : function replaceModel() txd = engineLoadTXD("test.txd", 33 ) engineImportTXD(dff, 33) dff = engineLoadDFF("test.dff", 33 ) engineReplaceModel(dff, 33) end addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), replaceModel) but it didn't work for me + I didn't know which Skin ID should i use (33 in this example). I had error/warnings and CJ still was in the car
  16. I'd like to know how to change ped skin which occupy the vehicle in my race map. I want to use custom skin, i have already DFF and TXD file and now i need a script. I was searching it 2 hours and i couldn't find it.. Using custom vehicles and objects is much easier regards, Krzysztof
  17. Yup, but creating a script and editing it is 10x longer than placing ready effect in the editor. engineSetModelLODDistance works only for objects. Does createEffect work for MTA 1.3 btw?
  18. Hello, I used particle effect (an object with a fire effect) and i have a problem with drawing distance. When I placed the object with the fire effect i could see it only if i was really close. Is it possible to see any effect from farther distance? I tried to use engineSetModelLODDistance(ID, 500) but as you know it works only for object, not for the effect.. thx for help, Krzysztof
  19. Hello, Since i started using TXD files to change object colors i have one problem. When I'm testing a map, my textures sometimes are not loaded . Is it possible to fix it or it's gta bug? The problem appears only sometimes. thanks for any help, Krzysztof
  20. i tested it 5 times (race gamemode) and it still doesn't work D: (I used carshade - 3458 and infernus to hit the object)
  21. should i replace first "if"? i don't understund..
×
×
  • Create New...