Snakegold Posted July 30, 2018 Share Posted July 30, 2018 (edited) شباب بدي لما اقتل شخص ينكتب رسالة في شاشة 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 July 30, 2018 by Snakegold Link to comment
+Source|> Posted July 31, 2018 Share Posted July 31, 2018 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
N3xT Posted July 31, 2018 Share Posted July 31, 2018 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
#DRAGON!FIRE Posted July 31, 2018 Share Posted July 31, 2018 onPlayerWasted triggerClientEvent dxDrawText addEventHandler removeEventHandler Link to comment
SycroX Posted July 31, 2018 Share Posted July 31, 2018 (edited) 1 hour ago, #DRAGON!FIRE said: onPlayerWasted triggerClientEvent dxDrawText addEventHandler removeEventHandler لسا فورا ملاحظ انك زاحف هههه ولكم منور يراجل اسمك القديم كان افضل + 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 July 31, 2018 by #َxLysandeR Link to comment
N3xT Posted July 31, 2018 Share Posted July 31, 2018 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
SycroX Posted July 31, 2018 Share Posted July 31, 2018 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 1 Link to comment
#DRAGON!FIRE Posted July 31, 2018 Share Posted July 31, 2018 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now