Jump to content

Mahdi0793

Members
  • Posts

    6
  • Joined

  • Last visited

Recent Profile Visitors

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

Mahdi0793's Achievements

Newbie

Newbie (4/54)

0

Reputation

  1. Thank you very much. Can you enable and disable this code as above? g_P = getLocalPlayer() rocketTimer = false function rocket() if not rocketTimer and isPedInVehicle(g_P) then local occupiedVehicle = getPedOccupiedVehicle(g_P) local rotX,rotY,rotZ = getElementRotation(occupiedVehicle) local x, y, z = getElementPosition(occupiedVehicle) local matrix = getElementMatrix(occupiedVehicle) local offX = 0 * matrix[1][1] + 1 * matrix[2][1] + 0 * matrix[3][1] + 1 * matrix[4][1] local offY = 0 * matrix[1][2] + 1 * matrix[2][2] + 0 * matrix[3][2] + 1 * matrix[4][2] local offZ = 0 * matrix[1][3] + 1 * matrix[2][3] + 0 * matrix[3][3] + 1 * matrix[4][3] local vx = offX - x local vy = offY - y local vz = offZ - z x = 0 * matrix[1][1] + 3 * matrix[2][1] + 0 * matrix[3][1] + 1 * matrix[4][1] y = 0 * matrix[1][2] + 3 * matrix[2][2] + 0 * matrix[3][2] + 1 * matrix[4][2] z = 0 * matrix[1][3] + 3 * matrix[2][3] + 0 * matrix[3][3] + 1 * matrix[4][3] createProjectile(g_P, 19, x, y, z, 200, nil, 0, 0, 360 - rotZ, vx, vy, vz) rocketTimer = setTimer(function() rocketTimer = false end, 3000, 1) else outputChatBox("#ff00003 Sec Wait!", 0, 0, 0, true) end end function onResourceStart() bindKey("lctrl", "down", rocket) end addEventHandler("onClientResourceStart", resourceRoot, onResourceStart)
  2. Work in the same shift and turn the command on and off, the same on and off That is, when it is on, only the shift works
  3. من میخوام به این کد دستور بدم تا حالت پرش ماشین روشن و خاموش بشه با استفاده از کامند (سی ام دی ) کمکم کنید :(؟ bindKey ( "lshift","down", function () local vehicle = getPedOccupiedVehicle(localPlayer) if (isVehicleOnGround( vehicle ) == true) then local sx,sy,sz = getElementVelocity ( vehicle ) setElementVelocity( vehicle ,sx, sy, sz+0.55 ) end end )
  4. I want to command this code in order to turn the car jump mode on and off help me :(? bindKey ( "lshift","down", function () local vehicle = getPedOccupiedVehicle(localPlayer) if (isVehicleOnGround( vehicle ) == true) then local sx,sy,sz = getElementVelocity ( vehicle ) setElementVelocity( vehicle ,sx, sy, sz+0.55 ) end end )
×
×
  • Create New...