Jump to content

Mr.unpredictable.

Members
  • Posts

    437
  • Joined

  • Last visited

Everything posted by Mr.unpredictable.

  1. The explosion id is 51 make it like If weapon is 51 then setelementheath easiest way to do that. sorry i'm using forum from my cell phone, can't write the code write now.
  2. make it like when there is an explosion setElementhealth
  3. can you make it [code=lua ?
  4. Ik that but still the vehicle will collide with road and change the direction.anyway i have change the handling of the vehicle and also edited the dff file of the road and my problem is solved.
  5. With c++, c and java i would also suggest you to learn python.
  6. But to create that you will have use that animation ' Example this will change the walkingstyle animation to drunk man. function onClientResourceStart() setPedWalkingStyle(localPlayer,126) ------- drunk man walking style end addEventHandler("onClientResourceStart",resourceRoot, onClientResourceStart)
  7. You can use drunk animation for that.
  8. Just sayi8ng, If you are changing the weapon from minigun to uzi just because minigun is overpowered then you can reduce the power of minigun.
  9. I don't understand what are you trying to do.
  10. working fine for me. http://i.imgur.com/8NIuIk2.jpg
  11. It's working fine for me in client side also. http://i.imgur.com/UVbeSYZ.jpg
  12. addEventHandler("onResourceStart",resourceRoot,function() createPed ( 45, 1727.98, -1632.4, 20.2 ) end) It's working fine for me, My code is in server side.
  13. setPedRotation Edit Sorry you meant position.
  14. or add the xyz rotoation to attach elements code itself. Just edit the line 10 and 11 with this attachElements ( weapon1, theVehicle, 0, 0, 0, 20, 30, 90 ) attachElements ( weapon2, theVehicle, 0, 1, 0, 20, 30, 90 ) Full code local screenW,screenH = guiGetScreenSize() local weapon1 local weapon2 function attach ( ) local theVehicle = getPedOccupiedVehicle ( localPlayer ) if theVehicle then local x,y,z = getElementPosition ( theVehicle ) weapon1 = createWeapon("minigun", x, y, z + 1) weapon2 = createWeapon("minigun", x, y, z + 1) attachElements ( weapon1, theVehicle, 0, 0, 0, 20, 30, 90 ) attachElements ( weapon2, theVehicle, 0, 1, 0, 20, 30, 90 ) setWeaponClipAmmo(weapon1, 99999) setWeaponClipAmmo(weapon2, 99999) setWeaponState(weapon1, "firing") setWeaponState(weapon2, "firing") setWeaponProperty(weapon1, "fire_rotation", 0, -30, -1) setWeaponProperty(weapon2, "fire_rotation", 0, -30, -1) end end addCommandHandler ( "attach", attach ) http://i.imgur.com/G8iF23N.jpg
  15. It will still affect it, In this video The ball was moving slowly So you can't see it colliding with surface. If i change the speed it will create alot of problem doesn't matter if there is an invisible object or surface.
  16. Thanks, I didn't knew that MTA supports custom handling. I will try that.
  17. LOLL if balls not is texture, is the that ? is object ? Changing textures won't effect a shit. objects collision comes in .col file and vehicle collision comes in the dff file itself. they have nothing to do with the textures.
×
×
  • Create New...