mr.Extreme Posted October 31, 2013 Share Posted October 31, 2013 اسلام عليكم انا بدي كود اذا كان لاعب مو معة فلوس بيكون لونة ابيض اما اذا كان معة فلوس بيكون لونة اخضر اذا كان فلوس تحت صفر بيكون لونة احمر clientside function hud() local moneycount=getPlayerMoney(getLocalPlayer()) local money= '$' ..moneycount dxDrawText(tostring (money), (835/1024)*sWidth, (24/768)*sHeight, (994/1024)*sWidth, (39/768)*sHeight, tocolor(0, 100, 0, 255), (0.70/1024)*sWidth, (0.70/768)*sHeight, "bankgothic", "left", "top", false, false, false, true) end addEventHandler("onClientRander", root, hud) وشكرا Link to comment
TAPL Posted October 31, 2013 Share Posted October 31, 2013 جرب function hud() local money = getPlayerMoney() if money == 0 then r, g, b = 255, 255, 255 elseif money > 0 then r, g, b = 0, 100, 0 elseif money < 0 then r, g, b = 255, 0, 0 end dxDrawText("$"..tostring(money), (835/1024)*sWidth, (24/768)*sHeight, (994/1024)*sWidth, (39/768)*sHeight, tocolor(r, g, b, 255), (0.70/1024)*sWidth, (0.70/768)*sHeight, "bankgothic", "left", "top", false, false, false, true) end addEventHandler("onClientRander", root, hud) Link to comment
mr.Extreme Posted October 31, 2013 Author Share Posted October 31, 2013 جرب function hud() local money = getPlayerMoney() if money == 0 then r, g, b = 255, 255, 255 elseif money > 0 then r, g, b = 0, 100, 0 elseif money < 0 then r, g, b = 255, 0, 0 end dxDrawText("$"..tostring(money), (835/1024)*sWidth, (24/768)*sHeight, (994/1024)*sWidth, (39/768)*sHeight, tocolor(r, g, b, 255), (0.70/1024)*sWidth, (0.70/768)*sHeight, "bankgothic", "left", "top", false, false, false, true) end addEventHandler("onClientRander", root, hud) تسلممم Link to comment
K1NG Posted October 31, 2013 Share Posted October 31, 2013 جرب function hud() local money = getPlayerMoney() if money == 0 then r, g, b = 255, 255, 255 elseif money > 0 then r, g, b = 0, 100, 0 elseif money < 0 then r, g, b = 255, 0, 0 end dxDrawText("$"..tostring(money), (835/1024)*sWidth, (24/768)*sHeight, (994/1024)*sWidth, (39/768)*sHeight, tocolor(r, g, b, 255), (0.70/1024)*sWidth, (0.70/768)*sHeight, "bankgothic", "left", "top", false, false, false, true) end addEventHandler("onClientRander", root, hud) Event Name: onClientRander > onClientRender 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