Jump to content

طلب صغير


Jw8.

Recommended Posts

سلام عليكم شباب

اقدر اسويه اف2 ذي

function PointG()
if getElementData(localPlayer,"LoginTopP") then
for i, valueT in ipairs(PointGang) do
dxDrawFramedText ( "Top Player : "..valueT[1].. " ("..convertNumber(valueT[2])..")",(sX/400)*8, (sY/600)*250, (sX/800)*30, (sY/600)*80, tocolor(255,0,0, 255),1.0, "arial", "left", "top", false, false, true, false, false)
PlayerBestG = valueT[1]
end
end
end
addEventHandler("onClientRender", root,PointG) 

 

اقدر اسويه اف2 ؟؟ لاهنت

 

اي واحد يعرف يصلحه لي

Link to comment
1 minute ago, DmAr511 said:

سلام عليكم شباب

اقدر اسويه اف2 ذي

function PointG()
if getElementData(localPlayer,"LoginTopP") then
for i, valueT in ipairs(PointGang) do
dxDrawFramedText ( "Top Player : "..valueT[1].. " ("..convertNumber(valueT[2])..")",(sX/400)*8, (sY/600)*250, (sX/800)*30, (sY/600)*80, tocolor(255,0,0, 255),1.0, "arial", "left", "top", false, false, true, false, false)
PlayerBestG = valueT[1]
end
end
end
addEventHandler("onClientRender", root,PointG) 

 

اقدر اسويه اف2 ؟؟ لاهنت

 

اي واحد يعرف يصلحه لي

تبيه يفتح من اف 2 يعني؟

  • Like 1
Link to comment
20 hours ago, #BrosS said:

getElementData
setElementData
bindKey

 

thePlayer = getPlayerFromName ( playerName ) 
setElementData ( thePlayer, "tempdata.originalnick", sPlayerNickname )
bindKey ( player, "F2", "down", funcInput )

 

ابيك تعدله لي يعني وش احط؟

Link to comment
local Show = false 

function PointG ( )
	if Show == true then
		for i, valueT in ipairs(PointGang) do
			dxDrawFramedText ( "Top Player : "..valueT[1].. " ("..convertNumber(valueT[2])..")",(sX/400)*8, (sY/600)*250, (sX/800)*30, (sY/600)*80, tocolor(255,0,0, 255),1.0, "arial", "left", "top", false, false, true, false, false)
			PlayerBestG = valueT[1]
		end
	end
end
addEventHandler("onClientRender", root,PointG) 

bindKey ( "F2", "down",
	function ( )
		if Show == false then
			Show = true
			showCursor ( true )
		else
			Show = false
			showCursor ( false )
		end
	end
)

 

  • Like 1
Link to comment
On 15.12.2016 at 8:33 AM, خلف said:

local Show = false 

function PointG ( )
	if Show == true then
		for i, valueT in ipairs(PointGang) do
			dxDrawFramedText ( "Top Player : "..valueT[1].. " ("..convertNumber(valueT[2])..")",(sX/400)*8, (sY/600)*250, (sX/800)*30, (sY/600)*80, tocolor(255,0,0, 255),1.0, "arial", "left", "top", false, false, true, false, false)
			PlayerBestG = valueT[1]
		end
	end
end
addEventHandler("onClientRender", root,PointG) 

bindKey ( "F2", "down",
	function ( )
		if Show == false then
			Show = true
			showCursor ( true )
		else
			Show = false
			showCursor ( false )
		end
	end
)

 

مشكوررر تقدر الصور ؟

 

addEventHandler("onClientRender", root,
function()
    if Show == true then
dxDrawImage( (sX / 800) * 1.0, (sY / 600) * 250.0, (sX / 800) * 15.0, (sY / 600) * 15.0, "new.png",0,0,0,tocolor(255,255,255,255))
else
dxDrawImage( (sX / 800) * 1.0, (sY / 600) * 250.0, (sX / 800) * 15.0, (sY / 600) * 15.0, "new.png",0,0,0,tocolor(255,255,255,255))
end
end
)

Link to comment
54 minutes ago, DmAr511 said:

مشكوررر تقدر الصور ؟

 

addEventHandler("onClientRender", root,
function()
    if Show == true then
dxDrawImage( (sX / 800) * 1.0, (sY / 600) * 250.0, (sX / 800) * 15.0, (sY / 600) * 15.0, "new.png",0,0,0,tocolor(255,255,255,255))
else
dxDrawImage( (sX / 800) * 1.0, (sY / 600) * 250.0, (sX / 800) * 15.0, (sY / 600) * 15.0, "new.png",0,0,0,tocolor(255,255,255,255))
end
end
)

العفو , يب تضبط على الصورة بس عدل الكود خله

addEventHandler("onClientRender", root,
	function ( )
  	 if Show == true then
			dxDrawImage( (sX / 800) * 1.0, (sY / 600) * 250.0, (sX / 800) * 15.0, (sY / 600) * 15.0, "new.png",0,0,0,tocolor(255,255,255,255))
		end
	end
)

 

Edited by خلف
Link to comment
7 minutes ago, خلف said:

العفو , يب تضبط على الصورة بس عدل الكود خله


addEventHandler("onClientRender", root,
	function ( )
  	 if Show == true then
			dxDrawImage( (sX / 800) * 1.0, (sY / 600) * 250.0, (sX / 800) * 15.0, (sY / 600) * 15.0, "new.png",0,0,0,tocolor(255,255,255,255))
		end
	end
)

 

اسمع في مشكله يعني مسويهن موودين كذا يعني اطلع من السيرفر واخش بتسوي واحد اضغط اف2 بتجي الثانيه ؟

Link to comment
local Show = false 

function PointG ( )
	if Show == true then
		for i, valueT in ipairs(PointGang) do
			dxDrawFramedText ( "Top Player : "..valueT[1].. " ("..convertNumber(valueT[2])..")",(sX/400)*8, (sY/600)*250, (sX/800)*30, (sY/600)*80, tocolor(255,0,0, 255),1.0, "arial", "left", "top", false, false, true, false, false)
dxDrawImage( (sX / 800) * 1.0, (sY / 600) * 250.0, (sX / 800) * 15.0, (sY / 600) * 15.0, "new.png",0,0,0,tocolor(255,255,255,255))
			PlayerBestG = valueT[1]
		end
	end
end
addEventHandler("onClientRender", root,PointG) 

bindKey ( "F2", "down",
	function ( )
		if Show == false then
			Show = true
			showCursor ( true )
		else
			Show = false
			showCursor ( false )
		end
	end
)

 

Link to comment
Show = false 
function PointG ( )
		for i, valueT in ipairs(PointGang) do
			dxDrawFramedText ( "Top Player : "..valueT[1].. " ("..convertNumber(valueT[2])..")",(sX/400)*8, (sY/600)*250, (sX/800)*30, (sY/600)*80, tocolor(255,0,0, 255),1.0, "arial", "left", "top", false, false, true, false, false)
dxDrawImage( (sX / 800) * 1.0, (sY / 600) * 250.0, (sX / 800) * 15.0, (sY / 600) * 15.0, "new.png",0,0,0,tocolor(255,255,255,255))
			PlayerBestG = valueT[1]
	end
	end

bindKey ( "F2", "down",
function ( )
		if Show == false then
		addEventHandler("onClientRender", root,PointG) 
					Show = true
		else
		removeEventHandler("onClientRender", root,PointG)
		Show = false
		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...