Jump to content

Search the Community

Showing results for tags 'صوريخ'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Multi Theft Auto: San Andreas 1.x
    • Support for MTA:SA 1.x
    • User Guides
    • Open Source Contributors
    • Suggestions
    • Ban appeals
  • General MTA
    • News
    • Media
    • Site/Forum/Discord/Mantis/Wiki related
    • MTA Chat
    • Other languages
  • MTA Community
    • Scripting
    • Maps
    • Resources
    • Other Creations & GTA modding
    • Competitive gameplay
    • Servers
  • Other
    • General
    • Multi Theft Auto 0.5r2
    • Third party GTA mods
  • Archive
    • Archived Items
    • Trash

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Member Title


Gang


Location


Occupation


Interests

Found 1 result

  1. السلام عليكم اسف طلباتي كثيرة بس والله محتاج غصب عني ده مود اطلاق الصوريخ من السيارة ابي احوله بسريلات عشان مش اي احد يطلق function shoot1() local vehicle = getPedOccupiedVehicle(localPlayer) if(vehicle) and not isCursorShowing() then local x, y, z = getElementPosition(vehicle) createProjectile(vehicle, 19, x, y, z) addEventHandler("onClientPreRender",root,pb) setTimer ( function() unbindKey("mouse1", "down", shoot1 ) setTimer(addBind1, 2900, 1) end, 50, 1 ) end end function shoot2() local vehicle = getPedOccupiedVehicle(localPlayer) if(vehicle) and not isCursorShowing() then local x, y, z = getElementPosition(vehicle) createProjectile(vehicle, 19, x, y, z) addEventHandler("onClientPreRender",root,pb2) setTimer ( function() unbindKey("mouse2", "down", shoot2 ) setTimer(addBind2, 2900, 1) end, 50, 1 ) end end function addBind1() bindKey("mouse1", "down", shoot1) end function addBind2() bindKey("mouse2", "down", shoot2) end addCommandHandler("d", d) addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), addBind1) addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), addBind2) --loading hud --hud function hud() label2 = guiCreateLabel(0.895,0.787,0.94,0.92,"ROCKET 1",true) local screenWidth, screenHeight = guiGetScreenSize() local windowWidth, windowHeight = 180, 50 local left = screenWidth/1.09 - windowWidth/2 local top = screenHeight/1.2 - windowHeight/2 prog = guiCreateProgressBar(left, top, windowWidth, windowHeight, false) guiProgressBarSetProgress(prog,0) tick = getTickCount() end addEventHandler("onClientVehicleEnter",root,hud) addEventHandler("onClientResourceStart",root,hud) function pb() local done = getTickCount() if(guiProgressBarGetProgress(prog)==100)then local endT = getTickCount() removeEventHandler("onClientPreRender",root,pb) destroyElement(prog) setTimer(hud, 50, 1) else guiProgressBarSetProgress(prog,guiProgressBarGetProgress(prog)+1) if((done-tick)/1000 == 10)then slow() end end end function slow() removeEventHandler("onClientPreRender",root,pb) end --hud2 function hud2() label1 = guiCreateLabel(0.895,0.69,0.94,0.92,"ROCKET 2",true) local screenWidth, screenHeight = guiGetScreenSize() local windowWidth, windowHeight = 180, 50 local left = screenWidth/1.09 - windowWidth/2 local top = screenHeight/1.35 - windowHeight/2 prog2 = guiCreateProgressBar(left, top, windowWidth, windowHeight, false) guiProgressBarSetProgress(prog2,0) tick = getTickCount() end addEventHandler("onClientVehicleEnter",root,hud2) addEventHandler("onClientResourceStart",root,hud2) function pb2() local done = getTickCount() if(guiProgressBarGetProgress(prog2)==100)then local endT = getTickCount() removeEventHandler("onClientPreRender",root,pb2) destroyElement(prog2) setTimer(hud2, 50, 1) else guiProgressBarSetProgress(prog2,guiProgressBarGetProgress(prog2)+1) if((done-tick)/2000 == 20)then slow() end end end --die,exit function hide() destroyElement(prog) destroyElement(prog2) destroyElement(label1) destroyElement(label2) end addEventHandler("onClientPlayerWasted",root,hide) addEventHandler("OnClientPlayerVehicleExit",root,hide) --JUMP function bind() bindKey("lshift", "down", jump) end addEventHandler("onClientResourceStart", root, bind) player = localPlayer function jump() if isPedInVehicle(player) then local veh = getPedOccupiedVehicle(player) if isPedOnGround(player) then local vx,vy,vz = getElementVelocity(veh) setElementVelocity(veh,vx,vy,vz + 0.27) setTimer ( function() unbindKey("lshift", "down", jump ) setTimer(bind, 2400, 1) end, 1000, 1 ) end end end outputChatBox("Script by Xwad")
×
×
  • Create New...