Jump to content

×[ مود الجيو مساج ×[ مساعدة


Recommended Posts

هلا كيفك يا أحسن الناس ؟

ان شاء الله تكونو بخير  و بإحسن حال

بدي طلب كيف اعدل على دا الكود 

function drawRows()

	dxDrawRectangle((x + 50), 585,220, R, tocolor(255, 0, 0, 120))
	for i, row in pairs(Rows) do
		dxDrawText( row[1], (x - 0), row[3] - 20, (x - 0) / 2 + 600, row[3], row[2], 1.0, "default-bold", "center", "center", true, false, false, true, true)
	end
end
addEventHandler("onClientPreRender", root, drawRows)

يعني بدي اغير احداثيات المكان 

انا غيرتها بس يتغير مكان 1 و صعب شوي تعبت بدي تساعدني 

 

وهذه كل الاكواد 

local x, y = guiGetScreenSize()
local Rows = {}
local R = 0

function outputClient(text, r, g, b)
	local r = r or 255
	local g = g or 255
	local b = b or 255
    local color = tocolor(r, g, b, 255)
	R = R - 17
	table.insert(Rows, {text, color, R})
	setTimer(function()
		setTimer(function()
			if R > 0 then
				R = R - 1.0
				for i, row in pairs(Rows) do
					Rows[i] = {row[1], row[2], row[3] - 1.0}
					if row[3] <= 0 then
						table.remove(Rows, i)
					end
				end
			end
		end, 50, 17)
	end, 10000, 1)
end
addEvent("calloutputClient", true)
addEventHandler("calloutputClient", root, outputClient)
x = 900
f = 240
function drawRows()

	dxDrawRectangle((x + 50), 585,220, R, tocolor(255, 0, 0, 120))
	for i, row in pairs(Rows) do
		dxDrawText( row[1], (x - 0), row[3] - 20, (x - 0) / 2 + 600, row[3], row[2], 1.0, "default-bold", "center", "center", true, false, false, true, true)
	end
end
addEventHandler("onClientPreRender", root, drawRows)

و مشكوور و يعطيكم العافية يا أخسن الناس

 

Edited by #Mr.Pop
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...