Jump to content

Hansu42

Members
  • Content Count

    14
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Hansu42

  • Rank
    Square

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Can anyone help??
  2. Hello, I have a problem with the script, when I add id rhino and id fire truck this script does not work tankdx = 2 tankdy = 4 tankdz = 2 function boomOn () booming = true --outputDebugString("Boomon!") end function start () maxDamage = get("maxTankDamage") eightDistance = get("eightTankDistance") --outputDebugString("tankdamage settings: maxTankDamage = "..tostring(maxDamage).." - eightTankDistance = "..tostring(eightDistance)) boomOn() end addEventHandler("onResourceStart",getResourceRootElement(getThisResource()),start) function boom (x,y,z,boomType) --outputDebugString("boom
  3. Everything works just in the script I gave the old version of your script and it interfered with each other. //To Close
  4. I will go and see on the local server tankdx = 2 tankdy = 4 tankdz = 2 function boomOn () booming = true --outputDebugString("Boomon!") end function start () maxDamage = get("maxTankDamage") eightDistance = get("eightTankDistance") --outputDebugString("tankdamage settings: maxTankDamage = "..tostring(maxDamage).." - eightTankDistance = "..tostring(eightDistance)) boomOn() end addEventHandler("onResourceStart",getResourceRootElement(getThisResource()),start) function boom (x,y,z,boomType) --outputDebugString("boom type "..tostring(boomType)) if booming then booming = false boom
  5. Now the car has immortality on all weapons
  6. Yes, but I would like only RPG and HS to deal damage to the vehicle and M4 and ak no longer Yes, but I would like only RPG and HS to deal damage to the vehicle and M4 and ak no longer It also does not work
  7. local function isExplosiveWeapon(id) local t = {35, 36, 16, 18, 39} for _, i in ipairs(t) do if i == id then return true end end return false end addEventHandler("onClientVehicleDamage", root, function(_, wpn, loss) if wpn and not isExplosiveWeapon(tonumber(wpn)) then cancelEvent() elseif wpn and isExplosiveWeapon(tonumber(wpn)) then setElementHealth(source, getElementHealth(source) - loss) end end) addEventHandler("onClientPedDamage", root, function(attacker, wpn, bodypart) if isPedInVehicle(source) then cancelEvent() else
  8. I need finish code, I m new in scripting
  9. Hello, I need a script for a tank with the s.w.a.t no bullets damage. Only from RPG.
  10. I mean 2 x M4, No 2 M4 in hands. I mean more weapons
  11. Hello, is it possible to create a second M4 or AK47 weapon? i mean forexample that there are 2 M4 or Ak47 gun in mta. I'm new in scripting
×
×
  • Create New...