Jump to content

[ مساعدة ] ==


Recommended Posts

ابي اول ما اللاعب يقل دمه ل 40 واقل يجيب اسم اللاعب الي صار دمه 40 واقل في الشات انه يحتاج للمساعدة
محاولتي
 

local Marker = { }
local Player = { }
addEventHandler ("onPlayerDamage", root, 
    function ()
        local hp = getElementHealth (source)
        if (hp >= 30 and hp <= 40) then
		    Name = getPlayerName
            setElementFrozen (source, true)
            setPedAnimation (source, "CRACK", "crckidle1",true)
			outputChatBox("#FF0000 اوشك علي الموت اسرع لمساعدته #FF00FF["..Name.."]#FFFF00 اللاعب",root,255,255,255,true)
            local x, y, z = getElementPosition (source)
            if isElement (Marker [source]) then
                destroyElement (Marker [source])
                Player [Marker [source]] = nil
                Marker [source] = nil
            end
            Marker [source] = createMarker (x, y + 3, z - 1, "cylinder", 2, 255, 255, 255)
            Player [Marker [source]] = source
        else
            if isElement (Marker [source]) then
                destroyElement (Marker [source])
                Player [Marker [source]] = nil
                Marker [source] = nil
            end
        end
    end
)

 

Link to comment
3 minutes ago, #Himoo said:

ابي اول ما اللاعب يقل دمه ل 40 واقل يجيب اسم اللاعب الي صار دمه 40 واقل في الشات انه يحتاج للمساعدة
محاولتي
 


local Marker = { }
local Player = { }
addEventHandler ("onPlayerDamage", root, 
    function ()
        local hp = getElementHealth (source)
        if (hp >= 30 and hp <= 40) then
		    Name = getPlayerName
            setElementFrozen (source, true)
            setPedAnimation (source, "CRACK", "crckidle1",true)
			outputChatBox("#FF0000 اوشك علي الموت اسرع لمساعدته #FF00FF["..Name.."]#FFFF00 اللاعب",root,255,255,255,true)
            local x, y, z = getElementPosition (source)
            if isElement (Marker [source]) then
                destroyElement (Marker [source])
                Player [Marker [source]] = nil
                Marker [source] = nil
            end
            Marker [source] = createMarker (x, y + 3, z - 1, "cylinder", 2, 255, 255, 255)
            Player [Marker [source]] = source
        else
            if isElement (Marker [source]) then
                destroyElement (Marker [source])
                Player [Marker [source]] = nil
                Marker [source] = nil
            end
        end
    end
)

 

القسم غلط * ,
@!#NssoR_)

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