Jump to content

مساعده في مود من تصميمي


Recommended Posts

هلا شباب الله يعزكم 

اليوم سويت سكربت بس ما ادري ايش المشكله فيه يعني الدرع ما بيختفي لما  اخلي حد يدمجه و الدرع يبان صغير

ياريت لو تعرف كيف يتصلح ما تبخل علي

Quote

elementVest = {}
function getArmour(hitPlayer)
    if isElement(hitPlayer) then
        local player = hitPlayer
        local armour = getPedArmor(player) 
        if armour > 0 then 
            x,y,z = getElementPosition(player) 
            if not isElement(elementVest[player]) then 
                exports.bone_attach:detachElementFromBone(elementVest[player]) 
                elementVest[player] = false
            end 
            elementVest[player] = createObject(1242,x,y,z) 
            exports.bone_attach:attachElementToBone(elementVest[player],player,3,0,0.04,0.08,0,0,180)

        else 
            if elementVest[player] and isElement(elementVest[player]) then 
                exports.bone_attach:detachElementFromBone(elementVest[player]) 
                destroyElement(elementVest[player]) 
                elementVest[player] = false 
            end 
        end 
    end
end

setTimer(getArmour, 1000, 1)

 

Link to comment
elementVest = {}
function getArmour(hitPlayer)
    if isElement(hitPlayer) then
        local player = hitPlayer
        local armour = getPedArmor(player) 
        if armour > 0 then 
            x,y,z = getElementPosition(player) 
            if not isElement(elementVest[player]) then 
                exports.bone_attach:detachElementFromBone(elementVest[player]) 
                elementVest[player] = false
            end 
            elementVest[player] = createObject(1242,x,y,z) 
            exports.bone_attach:attachElementToBone(elementVest[player],player,3,0,0.04,0.08,0,0,180)

        else 
            if elementVest[player] and isElement(elementVest[player]) then 
                exports.bone_attach:detachElementFromBone(elementVest[player]) 
                destroyElement(elementVest[player]) 
                elementVest[player] = false 
            end 
        end 
    end
end

setTimer(getArmour, 1000, 1, localPlayer)

 

  • Like 1
Link to comment
1 hour ago, NX_CI said:

elementVest = {}
function getArmour(hitPlayer)
    if isElement(hitPlayer) then
        local player = hitPlayer
        local armour = getPedArmor(player) 
        if armour > 0 then 
            x,y,z = getElementPosition(player) 
            if not isElement(elementVest[player]) then 
                exports.bone_attach:detachElementFromBone(elementVest[player]) 
                elementVest[player] = false
            end 
            elementVest[player] = createObject(1242,x,y,z) 
            exports.bone_attach:attachElementToBone(elementVest[player],player,3,0,0.04,0.08,0,0,180)

        else 
            if elementVest[player] and isElement(elementVest[player]) then 
                exports.bone_attach:detachElementFromBone(elementVest[player]) 
                destroyElement(elementVest[player]) 
                elementVest[player] = false 
            end 
        end 
    end
end

setTimer(getArmour, 1000, 1, localPlayer)

 

احيك بس للاسف الشمكله لسه موجوده لازم اغير ال 

لازم اغير ال 

settimer

عشان يشتغل و الدرع مش بيتشال لما اخلي حد يدمجه

Link to comment

ابي اخلي ازا اخزت درع يظهر علي جسدي و لما حد يدمجه يخليه 0 الدرع يختفي من علي جسدي 

4 hours ago, NX_CI said:

انت وش تبي بالضبط

 

Edited by Caramela
Link to comment

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...