Jump to content

S.W.A.T. Jármű script


Xwad

Recommended Posts

Sziasztok csináltam egy scriptet a szerveremhez de nem müködik valamiért. Ez script azt teszi lehetővé ,hogy a S.W.A.T. járművel úgy lehessen lőni mint a tank-al

Tank.lua

function onSwatFire(key, keyState, vehicleFireType)

local vehicle = getPedOccupiedVehicle(localPlayer)

local vehModel = getElementModel(vehicle)

if vehModel == 601 then

if vehicleFireType == "primary" or vehicleFireType == "secondary" then -- your choice

local _,_,_,shootX, shootY, shootZ = getCameraMatrix()

local ped = createPed(0, shootX, shootY, shootZ)

local x,y,z = getElementPosition(vehicle)

createProjectile(vehicle--[[vehicle or localPlayer - Your choice]],19,x,y,z+1,200,ped)

if isElement(ped) then

destroyElement(ped)

end

end

end

end

Link to comment
  • 2 years later...
  • 1 month later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...