-
Posts
1,089 -
Joined
-
Last visited
Everything posted by Xwad
-
yeah:/ can you help fix this?
-
No i using this to my WW2 server. The problem is that i cant demage players when i shoot with the attached m4
-
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)
-
need i use this? setWeaponProperty(32, "poor", "flags", "flag_aim_arm")
-
Hi how can I change the tec9 shooting stance?
-
Cool its working now thanks man:D
-
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)
-
And is it not possible to make a trigger server event for blow under 100 hp?
-
its buggy its dosent blow up pls help
-
ohh sure thanks:) Its working now:D
-
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)
-
I found the range and set it to 3. Thanks for you answer:)
-
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.
-
ohh client side sry. Can you makE me an example with client side?
-
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)
-
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)
-
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.
-
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.