Jump to content

x[ طلب ]x فانكشنات وأحداث مود اظهار الكتابة


Recommended Posts

السلام عليكم ,
كيـف الـحـال ؟

هذا المود اذا تسوى تشـغـيـل = يطلع كلام تحت شـات تـلـقـائـىO.o
,, أريد أسـوى اذا تشغل المود = لا يطلع الكـلآم + الـكـلام يـطلـع من آف3 ,واذا اضغط اف3 مرة اخـرى = يخـتـفـئ

الـكـود


--CLient

local x, y = guiGetScreenSize()
local sW,sH = (x/1920),(y/1080)

addEventHandler("onClientRender", root, 
function()
	local LOL = getElementData(localPlayer, "Level") or 1
	local DOL = getElementData(localPlayer, "DOL") or 0
	local needDOL = LOL * 1
	dxDrawRectangle(25*sW, 400*sH, 300*sW, 80*sH, tocolor(0, 0, 0, 100))
	dxDrawText("AS: "..LOL, -150*sW, 775*sH, 300*sW, 80*sH, tocolor(255, 255, 255, 255), 1, "default-bold", "center", "center")
	dxDrawText("DS: "..string.format("%d", DOL).."/"..needDOL, 250*sW, 775*sH, 300*sW, 80*sH, tocolor(255, 255, 255, 255), 1, "default-bold", "center", "center")

	dxDrawText(string.format("S", 100/(needDOL/DOL)).."A", 50*sW, 830*sH, 300*sW, 80*sH, tocolor(255, 255, 255, 255), 1, "default-bold", "center", "center")
	dxDrawRectangle(35*sW, 445*sH, 280*sW, 20*sH, tocolor(150, 150, 150, 100))
	dxDrawRectangle(35*sW, 445*sH, 280*sW/needDOL*(DOL), 20*sH, tocolor(255, 255, 255, 100))
end)

شكرأ

 

Edited by Mr.OppS
,
Link to comment
--CLient

local x, y = guiGetScreenSize()
local sW,sH = (x/1920),(y/1080)


function test()
	local LOL = getElementData(localPlayer, "Level") or 1
	local DOL = getElementData(localPlayer, "DOL") or 0
	local needDOL = LOL * 1
	dxDrawRectangle(25*sW, 400*sH, 300*sW, 80*sH, tocolor(0, 0, 0, 100))
	dxDrawText("AS: "..LOL, -150*sW, 775*sH, 300*sW, 80*sH, tocolor(255, 255, 255, 255), 1, "default-bold", "center", "center")
	dxDrawText("DS: "..string.format("%d", DOL).."/"..needDOL, 250*sW, 775*sH, 300*sW, 80*sH, tocolor(255, 255, 255, 255), 1, "default-bold", "center", "center")

	dxDrawText(string.format("S", 100/(needDOL/DOL)).."A", 50*sW, 830*sH, 300*sW, 80*sH, tocolor(255, 255, 255, 255), 1, "default-bold", "center", "center")
	dxDrawRectangle(35*sW, 445*sH, 280*sW, 20*sH, tocolor(150, 150, 150, 100))
	dxDrawRectangle(35*sW, 445*sH, 280*sW/needDOL*(DOL), 20*sH, tocolor(255, 255, 255, 100))
end

bindKey("f3","down", function()
    if removeEventHandler("onClientRender",root,test) then
      removeEventHandler("onClientRender",root,test)
      showCursor ( false ) -- إذا ماتبي الزر يطلع شيل ذي
    else
      addEventHandler("onClientRender",root,test)
      showCursor ( true ) -- وشيل ذي بعد
    end
 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...