Jump to content

Xwad

Members
  • Posts

    1,089
  • Joined

  • Last visited

Everything posted by Xwad

  1. yeah:/ can you help fix this?
  2. No i using this to my WW2 server. The problem is that i cant demage players when i shoot with the attached m4
  3. Hi i have a script that attaches a m4 to rhino and allows to shoot with ctrl but when i shoot a player then it dosent demage the player pls help vehWeapons = {} function createM4Weapon() if getElementModel(source) == 432 then vehWeapons[source] = {} local vX, vY, vZ = getElementPosition(source) -- Wep 1 vehWeapons[source][1] = createWeapon("m4", vX, vY, vZ + 1) setWeaponClipAmmo(vehWeapons[source][1], 500) setWeaponState(vehWeapons[source][1], "ready") attachElements(vehWeapons[source][1],source,0.7,2.4,0.7,0,0,90) setWeaponFiringRate ( vehWeapons[source][1] , 63 ) end end addEventHandler( "onClientVehicleEnter",getRootElement(),createM4Weapon) addEventHandler("onClientKey", root, function(button,state) local veh = getPedOccupiedVehicle(localPlayer) if veh then if getElementModel(veh) == 432 then if vehWeapons[veh][1] then if button == "lctrl" and state == true then setWeaponState(vehWeapons[veh][1],"firing") else setWeaponState(vehWeapons[veh][1],"ready") end end end end end) function destroyCurrentVehicleWeapons() destroyElement(vehWeapons[source][1]) vehWeapons[source] = false -- Destroy the Weapons end addEventHandler("onClientVehicleExit",root, destroyCurrentVehicleWeapons) addEventHandler("onClientVehicleExplode",root, destroyCurrentVehicleWeapons)
  4. Xwad

    Change animation

    need i use this? setWeaponProperty(32, "poor", "flags", "flag_aim_arm")
  5. Hi how can I change the tec9 shooting stance?
  6. Xwad

    Set Timer

    Its working Thanks a lot
  7. Cool its working now thanks man:D
  8. Xwad

    Set Timer

    i cant shoot with the rpg and with the heatseeker.
  9. Xwad

    Set Timer

    its not working:(
  10. i convert the script that only swat vehicle will blow after 3 shoot but it dosent work pls help!! function noob(attacker, weapon, loss, x, y, z, tyre) if (weapon == 51 and getElementModel(source) == 601 then setElementHealth(source,getElementHealth(source) - 255) cancelEvent() end end addEventHandler("onClientVehicleDamage", root, noob)
  11. Xwad

    Set Timer

    Hi i want to make a script that makes a timer on every shoot with rpg or heatseeker. I mean if i shoot with an rpg or with a heatseeker after that i must wait 5 sec to shoot again.
  12. And is it not possible to make a trigger server event for blow under 100 hp?
  13. its buggy its dosent blow up pls help
  14. Xwad

    Plane weapon

    ohh sure thanks:) Its working now:D
  15. Xwad

    Plane weapon

    Hi. I made a script that attaches an m4 to the stuntplane and shoot with it like with the rustler. I started the rescource bu its not working. Client.lua function createM4Weapon() local vX, vY, vZ = getElementPosition(getPedOccupiedVehicle(localPlayer)) if getElementModel(source) == 513 then local weapon = createWeapon("m4", vx, vy, vz + 1) setWeaponClipAmmo(weapon, 99999) setWeaponState(weapon, "ready") addEventHandler("onClientKey", root, function(button,state) if button == "lctrl" and state == true then fireWeapon(m4) end end) end end addEventHandler( "onVehicleEnter", createM4Weapon)
  16. Xwad

    Second Rhino

    I found the range and set it to 3. Thanks for you answer:)
  17. Xwad

    Second Rhino

    You sad the distance is the same. Its not I test it. I shoot with the swat tank and it cant shoot so far then rhino.
  18. ohh client side sry. Can you makE me an example with client side?
  19. now good? local weapons = { [36] = true, -- Heat-Seeking RPG [35] = true, -- Rocket Launcher } function ChangeDemage(attacker, weapon, loss, x, y, z, tyre) if (weapons[weapon] and getElementModel(source) == 601 then if (getElementHealth(source) < 1000) then setElementHealth(source,getElementHealth(source) - 500) setVehicleDamageProof(source, false) end end addEventHandler("onVehicleDemage",getRootElement(),ChangeDemage)
  20. Is it correct? And is it server side? local weapons = { [36] = true, -- Heat-Seeking RPG [35] = true, -- Rocket Launcher } function ChangeDemage(attacker, weapon, loss, x, y, z, tyre) if (weapons[weapon] and getElementModel(source) == 601 then if (getElementHealth(source) < 1000) then setElementHealth(source,getElementHealth(source) - 500) setVehicleDamageProof(source, false) end end addEventHandler("onClientVehicleDemage",getRootElement(),ChangeDemage)
  21. Hi. Please help I need a script for my server that makes possible to change the explosion demage on the s.w.a.t. vehicle. I mean if I shoot the s.w.a.t. vehicle with an rpg then it will only demage 500hp becaouse I dont like that the vehicle is blowing up after 1 shoot. Thanks.
  22. thanks it is working:D One more question. Do you know some websides where I can download new object skins? Becaouse I searched on internet but I dont found anythink.
×
×
  • Create New...