Jump to content

مساعدة


Guest

Recommended Posts

			function check ( localPlayer )
	if isPedOnGround (localPlayer) then
	addEventHandler ( "onClientRender", root, pedonground )
	if not isPedOnGround (localPlayer) then
	addEventHandler ( "onClientRender", root, pednotonground )
	end
end
end
function pedonground ( )
        dxDrawText("isPedOnGround: True", 44, 204, 568, 257, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "left", "top", false, false, false, false, false)
	end

	function pednotonground ( )
        dxDrawText("isPedOnGround: False", 44, 204, 568, 257, tocolor(255, 0, 0, 255), 1.00, "bankgothic", "left", "top", false, false, false, false, false)
	end
	

في خطأ؟ ليش الكتابة مو ضاهرة

Link to comment

Client : 

addEventHandler('onClientRender',getRootElement(),
		function()
			if isPedOnGround (localPlayer) then
				dxDrawText("isPedOnGround: True", 44, 204, 568, 257, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "left", "top", false, false, false, false, false)
			else
				dxDrawText("isPedOnGround: False", 44, 204, 568, 257, tocolor(255, 0, 0, 255), 1.00, "bankgothic", "left", "top", false, false, false, false, false)
			end
		end
	)

 

  • Thanks 1
Link to comment
22 minutes ago, Trefeor said:

تقدر تختصرها كذا

حط مكان الكلام الي بالدي اكس كذا


( isPedOnGround ( localPlayer ) and  "True" or "False" )

 

ماينفع لان اللون يختلف يبيه على حسب الكلام

ولو سوا نفس طريقتك على اللون بيصير لحسه ومايعتبر اختصار يصير نفس الشي

  • Like 1
Link to comment

مانتبهت لـ لون

يقدر يسويها كذا

addEventHandler('onClientRender',getRootElement(),function()
local color = isPedOnGround ( localPlayer ) and tocolor(255,255,255,255) or tocolor(255,0,0,255) 
local text = isPedOnGround ( localPlayer ) and "True" or "False"
dxDrawText(text, 44, 204, 568, 257, color, 1.00, "bankgothic", "left", "top", false, false, false, false, false)
end )

 

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