Doffy Posted May 26, 2017 Share Posted May 26, 2017 ابي اول ما اللاعب يقل دمه ل 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
MR.StoRm Posted May 26, 2017 Share Posted May 26, 2017 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
Doffy Posted May 26, 2017 Author Share Posted May 26, 2017 Just now, MR.StoRm said: القسم غلط * ,@!#NssoR_) اها اوك Just now, MR.StoRm said: القسم غلط * ,@!#NssoR_) نسيت ههه @!#NsooR_) Link to comment
#BrosS Posted May 26, 2017 Share Posted May 26, 2017 7 غير سطر Name = getPlayerName(source) Link to comment
Doffy Posted May 26, 2017 Author Share Posted May 26, 2017 19 minutes ago, #BrosS said: 7 غير سطر Name = getPlayerName(source) 19 minutes ago, #BrosS said: 7 غير سطر Name = getPlayerName(source) مشكور اخوي Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now