Jump to content

مساعدة صغيرة و سهلة


Recommended Posts

شباب بدي لما  اقتل شخص ينكتب رسالة في شاشة

		function player_Wasted ( ammo, attacker, weapon, bodypart )
		if ( killer )  then
    end
end
addEventHandler ( "onPlayerWasted", getRootElement(), player_Wasted )

function drawtext ( killer )
        dxDrawText("+1,000 $", 941, 325, 1145, 368, tocolor(22, 191, 14, 255), 1.20, killer, "bankgothic", "left", "top", false, false, false, false, false)
end
addEventHandler ("onClientRender", drawtect)

مو شغال ممكن تقلي وين الخطأ او ايش مسويه خطأ؟ 

Edited by Snakegold
Link to comment
1 hour ago, Snakegold said:

ممكن مساعدة شباب؟

function player_Wasted ( killer )
	
  triggerEvent( "render", killer )
end

addEventHandler ( "onPlayerWasted", getRootElement(), player_Wasted )

function drawtext ( killer )
dxDrawText("+1,000 $", 941, 325, 1145, 368, tocolor(22, 191, 14, 255), 1.20, killer, "bankgothic", "left", "top", false, false, false, false, false)
end

addEvent( "render", true )
addEventHandler( "render", root,
  function()
    addEventHandler ("onClientRender", drawtext)
    setTimer( function()
        removeEventHandler ("onClientRender", drawtext)
        end, 5000, 1 )
   end
)

غير مجرب + من الجوال

Link to comment
6 hours ago, +Source|> said:

function player_Wasted ( killer )
	
  triggerEvent( "render", killer )
end

addEventHandler ( "onPlayerWasted", getRootElement(), player_Wasted )

function drawtext ( killer )
dxDrawText("+1,000 $", 941, 325, 1145, 368, tocolor(22, 191, 14, 255), 1.20, killer, "bankgothic", "left", "top", false, false, false, false, false)
end

addEvent( "render", true )
addEventHandler( "render", root,
  function()
    addEventHandler ("onClientRender", drawtext)
    setTimer( function()
        removeEventHandler ("onClientRender", drawtext)
        end, 5000, 1 )
   end
)

غير مجرب + من الجوال

الكود خطأ, والتريقر ايضاً خطأ

drawText + dxDrawText وعندك أرقمنت زايد بالفنكشن

Link to comment
1 hour ago, #DRAGON!FIRE said:

لسا فورا ملاحظ انك زاحف هههه 

ولكم منور يراجل اسمك القديم كان افضل

+

local kills = 0

addEventHandler("onClientPlayerWasted", root,
	function(killer)
		if killer and killer ~= source and getElementType(killer) == "player" then
     		if killer == localPlayer then
			kills = kills + 1
			if kills == 1 then
				addEventHandler("onClientRender", root, dxText)
			end
			killsTimer = setTimer(function()
				kills = kills - 1
				if kills > 0 then
					resetTimer(killsTimer)
				else
					removeEventHandler("onClientRender", root, dxText)
					if kills < 0 then
						kills = 0
					end
				end
			end
        end
		end
	end
)

function dxText()
	dxDrawText("+1,000 $", 941, 325, 1145, 368, tocolor(22, 191, 14, 255), 1.20, "bankgothic", "left", "top", false, false, false, false, false)
end

 

Edited by #َxLysandeR
Link to comment
48 minutes ago, #َxLysandeR said:

لسا فورا ملاحظ انك زاحف هههه 

ولكم منور يراجل اسمك القديم كان افضل

+


local kills = 0

addEventHandler("onClientPlayerWasted", root,
	function(killer)
		if killer and killer ~= source and getElementType(killer) == "player" then
     		if killer == localPlayer then
			kills = kills + 1
			if kills == 1 then
				addEventHandler("onClientRender", root, dxText)
			end
			killsTimer = setTimer(function()
				kills = kills - 1
				if kills > 0 then
					resetTimer(killsTimer)
				else
					removeEventHandler("onClientRender", root, dxText)
					if kills < 0 then
						kills = 0
					end
				end
			end
        end
		end
	end
)

function dxText()
	dxDrawText("+1,000 $", 941, 325, 1145, 368, tocolor(22, 191, 14, 255), 1.20, "bankgothic", "left", "top", false, false, false, false, false)
end

 

التايمر ماله وقت

Link to comment
1 minute ago, N3xT said:

التايمر ماله وقت

ما اخدت بالي 

local kills = 0

addEventHandler("onClientPlayerWasted", root,
	function(killer)
		if killer and killer ~= source and getElementType(killer) == "player" then
     		if killer == localPlayer then
			kills = kills + 1
			if kills == 1 then
				addEventHandler("onClientRender", root, dxText)
			end
			killsTimer = setTimer(function()
				kills = kills - 1
				if kills > 0 then
					resetTimer(killsTimer)
				else
					removeEventHandler("onClientRender", root, dxText)
					if kills < 0 then
						kills = 0
					end
				end
			end, 3000, 1)
        end
		end
	end
)

function dxText()
	dxDrawText("+1,000 $", 941, 325, 1145, 368, tocolor(22, 191, 14, 255), 1.20, "bankgothic", "left", "top", false, false, false, false, false)
end

 

  • Like 1
Link to comment
1 hour ago, #َxLysandeR said:

لسا فورا ملاحظ انك زاحف هههه 

ولكم منور يراجل اسمك القديم كان افضل

 


local kills = 0

addEventHandler("onClientPlayerWasted", root,
	function(killer)
		if killer and killer ~= source and getElementType(killer) == "player" then
     		if killer == localPlayer then
			kills = kills + 1
			if kills == 1 then
				addEventHandler("onClientRender", root, dxText)
			end
			killsTimer = setTimer(function()
				kills = kills - 1
				if kills > 0 then
					resetTimer(killsTimer)
				else
					removeEventHandler("onClientRender", root, dxText)
					if kills < 0 then
						kills = 0
					end
				end
			end
        end
		end
	end
)

function dxText()
	dxDrawText("+1,000 $", 941, 325, 1145, 368, tocolor(22, 191, 14, 255), 1.20, "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...