Jump to content

WASSIm.

Members
  • Posts

    1,412
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by WASSIm.

  1. WASSIm.

    helppp!!!

    hi guys i have problem. why just minigun1 and other dont shoting addEventHandler("onClientVehicleEnter", root, function(thePlayer, seat) local theVehicle = source if seat == 0 and thePlayer and getElementModel(theVehicle) == 425 then local x, y, z = getElementPosition ( theVehicle ) minigun1 = createWeapon ( "minigun", x, y, z ) minigun2 = createWeapon ( "minigun", x, y, z ) minigun3 = createWeapon ( "minigun", x, y, z ) minigun4 = createWeapon ( "minigun", x, y, z ) setElementAlpha ( minigun1,255) setElementAlpha ( minigun2,255) setElementAlpha ( minigun3,255) setElementAlpha ( minigun4,255) attachElements ( minigun1, theVehicle, 2.15, 0.5, -1.2, 0, 0, 90 ) attachElements ( minigun2, theVehicle, -2.10, 0.5, -1.2, 0, 0, 90 ) attachElements ( minigun3, theVehicle, 2.57, 0.5, -1.1, 0, 0, 90 ) attachElements ( minigun4, theVehicle, -2.52, 0.5, -1.1, 0, 0, 90 ) toggleControl ( "vehicle_fire", false ) toggleControl ( "vehicle_secondary_fire", false ) bindKey ( "n", "down", enableFire ) bindKey ( "n", "up", disableFire ) end end ) addEventHandler("onClientVehicleExit", root, function(thePlayer, seat) local theVehicle = source if seat == 0 and thePlayer and getElementModel(theVehicle) == 425 then if minigun1 and minigun2 and minigun3 and minigun4 then destroyElement (minigun1) destroyElement (minigun2) destroyElement (minigun3) destroyElement (minigun4) toggleControl ( "vehicle_fire", false ) toggleControl ( "vehicle_secondary_fire", false ) unbindKey ( "n", "down", enableFire ) unbindKey ( "n", "up", disableFire ) end end end ) function enableFire() if isTimer(MG1timer) and isTimer(MG2timer) and isTimer(MG3timer) and isTimer(MG4timer) then if minigun1 and minigun2 and minigun3 and minigun4 then killTimer(MG1timer) killTimer(MG2timer) killTimer(MG3timer) killTimer(MG4timer) else MG1timer = setTimer(function() setWeaponState ( minigun1, "firing" ) end, 50, 1) MG2timer = setTimer(function() setWeaponState ( minigun2, "firing" ) end, 50, 1) MG3timer = setTimer(function() setWeaponState ( minigun3, "firing" ) end, 50, 1) MG4timer = setTimer(function() setWeaponState ( minigun4, "firing" ) end, 50, 1) MiniSound = playSound("Pro_Minigun.wav", true) setSoundVolume(MiniSound, 1) setSoundSpeed ( MiniSound, 1 ) setSoundEffectEnabled(MiniSound,"gargle",false) end end end function disableFire() if isTimer(MG1timer) and isTimer(MG2timer) and isTimer(MG3timer) and isTimer(MG4timer) then if minigun1 and minigun2 and minigun3 and minigun4 then killTimer(MG1timer) killTimer(MG2timer) killTimer(MG3timer) killTimer(MG4timer) else MG1timer = setTimer(function() setWeaponState ( minigun1, "ready" ) end, 50, 1) MG2timer = setTimer(function() setWeaponState ( minigun2, "ready" ) end, 50, 1) MG3timer = setTimer(function() setWeaponState ( minigun3, "ready" ) end, 50, 1) MG4timer = setTimer(function() setWeaponState ( minigun4, "ready" ) end, 50, 1) stopSound ( MiniSound ) end end end
  2. WASSIm.

    help

    i fix attach but problem to xt. minigun its moving Versa addEventHandler ( "onClientRender", root, function () if minigunOne and getElementModel(theVehicle) == 601 then local xt, yt = getVehicleTurretPosition (theVehicle) xt = math.deg ( xt ) yt = math.deg ( yt ) attachElements ( minigunOne, theVehicle, 0.15, 0, 1.3, 0, yt, xt+90 ) end end )
  3. WASSIm.

    help

    minigun not moving not moving or not shot? minigun not moving
  4. WASSIm.

    help

    minigun not moving
  5. WASSIm.

    help

    hi guys i have problem addEventHandler ( "onClientVehicleEnter", root, function(thePlayer, seat) local theVehicle = source if seat == 0 and thePlayer == localPlayer and getElementModel(theVehicle) == 601 then local x, y, z = getElementPosition ( theVehicle ) local rx, ry, rz = getElementRotation ( theVehicle ) local xt, yt = getVehicleTurretPosition (theVehicle) minigunOne = createWeapon ( "minigun", x, y, z ) setElementAlpha (minigunOne,255) xt = math.deg ( xt ) yt = math.deg ( yt ) setTimer ( function() attachElements ( minigunOne, theVehicle, 0.15, 0, 1.3, 0, yt, xt + 90 ) end, 500, 0 ) bindKey ( "mouse1", "down", enableFire ) bindKey ( "mouse1", "up", disableFire ) end end) addEventHandler("onClientVehicleExit", root, function(thePlayer, seat) local theVehicle = source if seat == 0 and thePlayer == localPlayer and getElementModel(theVehicle) == 601 then if minigunOne then destroyElement (minigunOne) unbindKey ( "mouse1", "down", enableFire ) unbindKey ( "mouse1", "up", disableFire ) end end end ) function enableFire() if isTimer(MGtimer) and minigunOne then killTimer(MGtimer) else MGtimer = setTimer(function() setWeaponState ( minigunOne, "firing" ) end, 50, 1) MiniSound = playSound3D("Pro_Minigun.wav", x, y, z, true) setSoundVolume(MiniSound, 1) setSoundSpeed ( MiniSound, 0.9 ) setSoundMaxDistance(MiniSound, 50) end end function disableFire() if isTimer(MGtimer) and minigunOne then killTimer(MGtimer) else MGtimer = setTimer(function() setWeaponState ( minigunOne, "ready" ) end, 50, 1) end end i have problem here: setTimer ( function() attachElements ( minigunOne, theVehicle, 0.15, 0, 1.3, 0, yt, xt + 90 ) end, 500, 0 )
  6. minigun dont have effect and delete this if you want see ... setElementAlpha ( minigunOne,0) setElementAlpha ( minigunTwo,0) or change like that setElementAlpha ( minigunOne,255) setElementAlpha ( minigunTwo,255) setElementAlpha ( minigunOneF,255) setElementAlpha ( minigunTwoF,255)
  7. > author="Threule" version="1" type="script" /> ="script.lua" type="client" /> src="elegy.txd" type="client"/> src="elegy.dff" type="client"/> src="exh_a_l.dff" type="client"/> src="exh_c_l.dff" type="client"/> src="fbmp_a_l.dff" type="client"/> src="fbmp_c_l.dff" type="client"/> src="rbmp_a_l.dff" type="client"/> src="rbmp_c_l.dff" type="client"/> src="rf_a_l.dff" type="client"/> src="rf_c_l.dff" type="client"/> src="spl_a_l_b.dff" type="client"/> src="spl_c_l_b.dff" type="client"/> src="wg_l_a_l.dff" type="client"/> src="wg_l_c_l.dff" type="client"/> src="wg_r_a_l.dff" type="client"/> src="wg_r_c_l.dff" type="client"/>>
  8. aka s7i7a ? function="isPlayeriv" type="server" /> function="isPlayeriv" type="client" /> function="isPlayereflc" type="server" /> function="isPlayereflc" type="client" /> function="isPlayertlad" type="server" /> function="isPlayertlad" type="client" /> ena n7ab najam nasta3mlom haka setElementData( source, "isPlayeriv", false ) setElementData( source, "isPlayertbogt", false ) setElementData( source, "isPlayertlad", false ) setElementData( source, "isPlayeriv", true ) setElementData( source, "isPlayertbogt", true ) setElementData( source, "isPlayertlad", true )
  9. ahla ya jma3a il script hadha ma7abch ya5dem ama la79i9a 5dhit min script a5ar SERVER function isPlayeriv ( thePlayer ) if ( isElement( thePlayer ) ) then if ( getElementData(thePlayer, "isPlayeriv" ) ) then return true else return false end else return false end end function isPlayertbogt ( thePlayer ) if ( isElement( thePlayer ) ) then if ( getElementData(thePlayer, "isPlayertbogt" ) ) then return true else return false end else return false end end function isPlayertlad ( thePlayer ) if ( isElement( thePlayer ) ) then if ( getElementData(thePlayer, "isPlayertlad" ) ) then return true else return false end else return false end end
  10. WASSIm.

    question

    i want weapon rifle can reloeded like CIT server how ?
  11. WASSIm.

    question

    hi guys how make sniper reloeded ?
  12. WASSIm.

    big problem

    oh how plis this by translate.google
  13. WASSIm.

    big problem

    hi guys i have problem very very big. i want reinstalle mta and if click file show me this and MTADiag like this too
  14. chof https://community.multitheftauto.com/ind ... &id=342695 From: Tunisia, nabeul
  15. mark = { --San Fierro {-2125.9267578125, 489.92904663086, 34}, } bag = { --San Fierro {-2281.2316894531, 1090.7425537109, 80.25749206543}, } function createBag() local mt = math.random(#bag) ob = createObject(1210,bag[mt][1],bag[mt][2],bag[mt][3]) setElementCollisionsEnabled(ob,false) time = setTimer(roo,50,0,ob) mar = createMarker(bag[mt][1],bag[mt][2],bag[mt][3],"corona",2,255,0,0,0) mar2 = createMarker(bag[mt][1],bag[mt][2],bag[mt][3]+1,"arrow",0.5,255,0,0,255) bl = createBlipAttachedTo(mar,17) setElementData(mar,"num",mt) outputChatBox("#FF0000* BrieFCase #00FF00Start !!",root,0,255,0,true) end addEventHandler("onResourceStart",resourceRoot,createBag) addEventHandler("onMarkerHit",root, function (player) if ( source == mar ) then if getElementType(player) == "player" and not isPedInVehicle(player) then local x,y,z = getElementPosition(player) local data = getElementData(mar,"num") local data = tonumber(data) destroyElement(mar) destroyElement(mar2) destroyElement(ob) destroyElement(bl) killTimer(time) setElementData(player,"bag",true) atBag = createObject(1210,x,y,z) setElementData(atBag,"num",data) exports.bone_attach:attachElementToBone(atBag,player,12,0,0.05,0.27,0,180,0) bli = createBlipAttachedTo(player,17) outputChatBox("#FFFF00" .. getPlayerName(player) .. "#00FF00 has took the Bag!",root,0,255,0,true) marker = createMarker(mark[data][1],mark[data][2],mark[data][3],"cylinder",2,189,98,222,255,player) marker1 = createMarker(mark[data][1],mark[data][2],mark[data][3],"arrow",0.5,255,0,0,255,player) attachElements ( marker1, player, 0, 0, 1.5 ) marBli = createBlipAttachedTo(marker,56,2,255,0,0,255,0,99999.0,player) end end end ) function roo(ele) local x,y,z = getElementRotation(ele) setElementRotation(ele,x,y,z + 10) end addEventHandler ( "onClientRender", root, roo ) addEventHandler("onPlayerWasted",root, function () if getElementData(source,"bag") and getElementData(source,"bag") == true then local data = getElementData(atBag,"num") local data = tonumber(data) local x,y,z = getElementPosition(source) setElementData(source,"bag",false) destroyElement(atBag) destroyElement(marker) destroyElement(marker1) destroyElement(bli) destroyElement(marBli) ob = createObject(1210,x,y,z) setElementCollisionsEnabled(ob,false) time = setTimer(roo,50,0,ob) mar = createMarker(x,y,z,"corona",2,255,0,0,0) mar2 = createMarker(x,y,z+1,"arrow",0.5,255,0,0,0) setElementData(mar,"num",data) bl = createBlipAttachedTo(mar,17) outputChatBox("#FF0000" .. getPlayerName(source) .. "#00FF00 has lost the Bag!",root,0,255,0,true) end end ) addEventHandler("onMarkerHit",root, function (player) if ( source == marker ) and not isPedInVehicle(player) then if getElementType(player) == "player" then setElementData(player,"bag",false) destroyElement(marker) destroyElement(marBli) destroyElement(bli) destroyElement(atBag) outputChatBox("#FFFF00" .. getPlayerName(player) .. " #00FF00has delivery the bag successfully!",root,255,0,0,true) outputChatBox("#FFFF00" .. getPlayerName(player) .. " has won #00FF00$10000 !",root,255,0,0,true) givePlayerMoney(player,10000) destroyElement(marker1) triggerClientEvent(player,"onShowMoney",player) setTimer(createBag,300000,1) end end end ) addEventHandler("onVehicleStartEnter",root, function (player) if getElementData(player,"bag") and getElementData(player,"bag") == true then cancelEvent() end end ) addEventHandler("onPlayerQuit",root, function () if getElementData(source,"bag") and getElementData(source,"bag") == true then local data = getElementData(atBag,"num") local data = tonumber(data) local x,y,z = getElementPosition(source) setElementData(source,"bag",false) destroyElement(atBag) destroyElement(marker) destroyElement(bli) destroyElement(marBli) ob = createObject(1210,x,y,z) setElementCollisionsEnabled(ob,false) time = setTimer(roo,50,0,ob) mar = createMarker(x,y,z,"corona",2,255,0,0,0) mar2 = createMarker(x,y,z+1,"arrow",0.5,255,0,0,255) setElementData(mar,"num",data) bl = createBlipAttachedTo(mar,17) outputChatBox("#FF0000" .. getPlayerName(source) .. "#00FF00 has lost the Bag!",root,0,255,0,true) end end )
  16. WASSIm.

    help httpdownloadurl

    replace (directory) to (resources) ?
×
×
  • Create New...