Outlaw Posted June 21, 2019 Share Posted June 21, 2019 (edited) السلام عليكم و رحمة الله شباب هذا مود إسم يضهر فوق الشخصية و لما يكون الشخص في حالة نوديثماتش بتضهر صورة جنب إسمها المشكل أنو الصورتين يطلعو فوق يعضهم if getElementData(player, "invincible") == false or getElementData(player, "invincible2") == false then if class and team then dxDrawImage ( sx - math.max(nameWidth/4, teamWidth/2.5) - 6*scale, sy - 20, 20, 20, ":Experience/Emblems/"..H..".png" ) elseif class and not team then dxDrawImage ( sx - math.max(nameWidth/3.2, teamWidth/3) - 4*scale, sy - 18, 18, 18, ":Experience/Emblems/"..H..".png" ) end end end if getElementData(player, "invincible") == true or getElementData(player, "invincible2") == true then if class and team then dxDrawImage ( sx - math.max(nameWidth/4, teamWidth/2.5) - 6*scale, sy - 18, 18, 18,":freeroam/icon.png" ) elseif class and not team then dxDrawImage ( sx - math.max(nameWidth/3.2, teamWidth/3) - 4*scale, sy - 18, 18, 18,":freeroam/icon.png" ) end end Edited June 21, 2019 by Outlaw Link to comment
+Source|> Posted June 22, 2019 Share Posted June 22, 2019 11 hours ago, Outlaw said: السلام عليكم و رحمة الله شباب هذا مود إسم يضهر فوق الشخصية و لما يكون الشخص في حالة نوديثماتش بتضهر صورة جنب إسمها المشكل أنو الصورتين يطلعو فوق يعضهم if getElementData(player, "invincible") == false or getElementData(player, "invincible2") == false then if class and team then dxDrawImage ( sx - math.max(nameWidth/4, teamWidth/2.5) - 6*scale, sy - 20, 20, 20, ":Experience/Emblems/"..H..".png" ) elseif class and not team then dxDrawImage ( sx - math.max(nameWidth/3.2, teamWidth/3) - 4*scale, sy - 18, 18, 18, ":Experience/Emblems/"..H..".png" ) end end end if getElementData(player, "invincible") == true or getElementData(player, "invincible2") == true then if class and team then dxDrawImage ( sx - math.max(nameWidth/4, teamWidth/2.5) - 6*scale, sy - 18, 18, 18,":freeroam/icon.png" ) elseif class and not team then dxDrawImage ( sx - math.max(nameWidth/3.2, teamWidth/3) - 4*scale, sy - 18, 18, 18,":freeroam/icon.png" ) end end جرب هذا function ifFalse() if class and team then dxDrawImage ( sx - math.max(nameWidth/4, teamWidth/2.5) - 6*scale, sy - 20, 20, 20, ":Experience/Emblems/"..H..".png" ) elseif class and not team then dxDrawImage ( sx - math.max(nameWidth/3.2, teamWidth/3) - 4*scale, sy - 18, 18, 18, ":Experience/Emblems/"..H..".png" ) end end function ifTrue() if class and team then dxDrawImage ( sx - math.max(nameWidth/4, teamWidth/2.5) - 6*scale, sy - 18, 18, 18,":freeroam/icon.png" ) elseif class and not team then dxDrawImage ( sx - math.max(nameWidth/3.2, teamWidth/3) - 4*scale, sy - 18, 18, 18,":freeroam/icon.png" ) end end if getElementData(player, "invincible") == false or getElementData(player, "invincible2") == false then addEventHandler( "onClientRender", root, ifFalse ) removeEventHandler( "onClientRender", root, ifTrue ) end if getElementData(player, "invincible") == true or getElementData(player, "invincible2") == true then addEventHandler( "onClientRender", root, ifTrue ) removeEventHandler( "onClientRender", root, ifFalse ) end Link to comment
Outlaw Posted June 22, 2019 Author Share Posted June 22, 2019 2 hours ago, +Source|> said: جرب هذا function ifFalse() if class and team then dxDrawImage ( sx - math.max(nameWidth/4, teamWidth/2.5) - 6*scale, sy - 20, 20, 20, ":Experience/Emblems/"..H..".png" ) elseif class and not team then dxDrawImage ( sx - math.max(nameWidth/3.2, teamWidth/3) - 4*scale, sy - 18, 18, 18, ":Experience/Emblems/"..H..".png" ) end end function ifTrue() if class and team then dxDrawImage ( sx - math.max(nameWidth/4, teamWidth/2.5) - 6*scale, sy - 18, 18, 18,":freeroam/icon.png" ) elseif class and not team then dxDrawImage ( sx - math.max(nameWidth/3.2, teamWidth/3) - 4*scale, sy - 18, 18, 18,":freeroam/icon.png" ) end end if getElementData(player, "invincible") == false or getElementData(player, "invincible2") == false then addEventHandler( "onClientRender", root, ifFalse ) removeEventHandler( "onClientRender", root, ifTrue ) end if getElementData(player, "invincible") == true or getElementData(player, "invincible2") == true then addEventHandler( "onClientRender", root, ifTrue ) removeEventHandler( "onClientRender", root, ifFalse ) end لا ما اشتغل لنو كودي أنا من فنكشن طويلة addEventHandler ( "onClientRender", nametags_Root, function() if getElementData(getLocalPlayer(), "state.hud") == "disabled" then return end for i,player in ipairs(nametags_Players) do if isElement(player) then setPlayerNametagShowing ( player, false ) if not nametags[player] then nametags.Create ( player ) end end end if Nametags_Hide then return --etc --etc --etc if getElementData(player, "invincible") == false then if class and team then dxDrawImage ( sx - math.max(nameWidth/4, teamWidth/2.5) - 4.3*scale, sy - 18, 18, 18, ":Experience/Emblems/"..H..".png" ) elseif class and not team then dxDrawImage ( sx - math.max(nameWidth/4, teamWidth/2.9)- 2*scale, sy - 18, 18, 18, ":Experience/Emblems/"..H..".png" ) end end if getElementData(player, "invincible") == true then if class and team then dxDrawImage ( sx - math.max(nameWidth/4, teamWidth/2.5) - 4*scale, sy - 18, 18, 18,":freeroam/icon.png" ) elseif class and not team then dxDrawImage ( sx - math.max(nameWidth/4, teamWidth/3.1) - 2*scale, sy - 18, 18, 18,":freeroam/icon.png" ) end end -- etc -- etc -- etc 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