Jump to content

EvoGT

Members
  • Posts

    61
  • Joined

  • Last visited

Everything posted by EvoGT

  1. EvoGT

    Will it work ?

    Will it give heath for car ? I need to make that when i shot to car with that gun, it makes car HP lower. I tryed this script now, dont work : ( and tryed with - 100
  2. EvoGT

    Will it work ?

    I found something interesting in resources. https://community.multitheftauto.com/ind ... ls&id=1259 This makes all cars undestroyable And when i use this https://community.multitheftauto.com/ind ... ls&id=5711 i cant destroy cars. its good And i found this : function onClientPlayerWeaponFireFunc(weapon, ammo, ammoInClip, hitX, hitY, hitZ, hitElement ) if (weapon == 31 and hitElement and getElementType(hitElement)=="vehicle") then -- If the weapon is a M4 and the element hit is a vehicle if getElementHealth(hitElement) >= 1000 then return end -- If the vehicle health is 1000%, don't heal it. setElementHealth(hitElement, getElementHealth(hitElement)+100) -- Set the vehicle health +100%. end end addEventHandler ( "onClientPlayerWeaponFire", getLocalPlayer(), onClientPlayerWeaponFireFunc ) addEventHandler("onResourceStart",resourceRoot, function () setWeaponProperty(31, "pro", "damage", 0) end) its a heal gun it is possible to make it unheal gun ? Like if i shot 1 time. it minuses 1 HP from vehicle Health Smt like this : I shot with gun in car 3 times. And car has 997 HP. It would be great way. And this: if getElementHealth(hitElement) >= 1000 it will work if car has 1000 HP ? is it possible to make it work on "random" hp, like 997 , 567 Please help .
  3. Well, i talking not about aiming. I talking about this : https://community.multitheftauto.com/ind ... ls&id=5711 And i tryed, setWeaponProperty(30, "poor", "damage", 1) But it dont work
  4. Rly, nobody understands me Heres what im trying to do: I wanna make Ak47 damage lower. Becouse, when i shot with ak47 into vehicle, it blows too fast. is it possible to make damage lower when i shotting to vehicles
  5. setWeaponProperty(30, "poor", "damage", 1) i tryed , nothing changed i destroy car ( with ak47 in the same 10 sec time ) nothing changed. What to do ?
  6. I think nobody knows what i want : x okey. Like i shot with ak47 in to car, and destroy it in 10seconds, ( shoting until it burns) and i wanna make lower damage, and destroy like in 20secs
  7. Eh my bad english. That "poor" the skill? If i change the damage, and then shot to car, will it changes?
  8. Thanks. Could yuo make an example? Im bad at scripting
  9. Hello mta community, how to change weapon damage. Weapons are to strong for me, i need to make them with low damage.
×
×
  • Create New...