Jump to content

مساعدة


Recommended Posts

السلام عليكم و رحمة الله

شباب هذا مود إسم يضهر فوق الشخصية و لما يكون الشخص في حالة نوديثماتش بتضهر صورة جنب إسمها

المشكل أنو الصورتين يطلعو فوق يعضهم

 

														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 by Outlaw
Link to comment
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
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

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