Kirito SOW Posted January 27, 2017 Share Posted January 27, 2017 (edited) السلام عليكم ورحمة الله وبركاته انا احاول اسوي هيد جديد لسيرفري اجتني مشكلة وهي الدم والفلوس والدرع ما يتحدثون حاولت اسويها بتايمر لكن كل ثانية يروحون ويرجعون الاكواد local hp = getElementHealth(localPlayer) local money = (getElementData(localPlayer,"Money") or 0) function dxo() dxDrawText("%"..hp, 879 - 1, 54 - 1, 965 - 1, 82 - 1, tocolor(0, 0, 0, 255), 1.50, "default", "center", "bottom", true, true, false, true, false) dxDrawText("%"..hp, 879 + 1, 54 - 1, 965 + 1, 82 - 1, tocolor(0, 0, 0, 255), 1.50, "default", "center", "bottom", true, true, false, true, false) dxDrawText("%"..hp, 879 - 1, 54 + 1, 965 - 1, 82 + 1, tocolor(0, 0, 0, 255), 1.50, "default", "center", "bottom", true, true, false, true, false) dxDrawText("%"..hp, 879 + 1, 54 + 1, 965 + 1, 82 + 1, tocolor(0, 0, 0, 255), 1.50, "default", "center", "bottom", true, true, false, true, false) dxDrawText("%"..hp, 879, 54, 965, 82, tocolor(51, 169, 203, 255), 1.50, "default", "center", "bottom", true, true, false, true, false) dxDrawText("$"..money, 838 - 1, 657 - 1, 1004 - 1, 683 - 1, tocolor(0, 0, 0, 255), 2.00, "default", "left", "top", true, true, false, true, false) dxDrawText("$"..money, 838 + 1, 657 - 1, 1004 + 1, 683 - 1, tocolor(0, 0, 0, 255), 2.00, "default", "left", "top", true, true, false, true, false) dxDrawText("$"..money, 838 - 1, 657 + 1, 1004 - 1, 683 + 1, tocolor(0, 0, 0, 255), 2.00, "default", "left", "top", true, true, false, true, false) dxDrawText("$"..money, 838 + 1, 657 + 1, 1004 + 1, 683 + 1, tocolor(0, 0, 0, 255), 2.00, "default", "left", "top", true, true, false, true, false) dxDrawText("$"..money, 838, 657, 1004, 683, tocolor(37, 225, 28, 255), 2.00, "default", "left", "top", true, true, false, true, false) end addEventHandler("onClientRender",root,dxo) setTimer(dxo,50,0) ومشكلة اضافية يكون دمي 25 بالهيد يجي 24.79999923 Edited January 27, 2017 by Kirito SOW Link to comment
Bssol Posted January 27, 2017 Share Posted January 27, 2017 (edited) التايمر ماله داعي مادامك مستخدم onClientRender + لازم الدم والفلوس تكون داخل عشان تتحدث على العموم، الكود بعد التعديل function dxo() local hp = math.ceil ( getElementHealth(localPlayer) ) local money = (getElementData(localPlayer,"Money") or 0) dxDrawText("%"..hp, 879 - 1, 54 - 1, 965 - 1, 82 - 1, tocolor(0, 0, 0, 255), 1.50, "default", "center", "bottom", true, true, false, true, false) dxDrawText("%"..hp, 879 + 1, 54 - 1, 965 + 1, 82 - 1, tocolor(0, 0, 0, 255), 1.50, "default", "center", "bottom", true, true, false, true, false) dxDrawText("%"..hp, 879 - 1, 54 + 1, 965 - 1, 82 + 1, tocolor(0, 0, 0, 255), 1.50, "default", "center", "bottom", true, true, false, true, false) dxDrawText("%"..hp, 879 + 1, 54 + 1, 965 + 1, 82 + 1, tocolor(0, 0, 0, 255), 1.50, "default", "center", "bottom", true, true, false, true, false) dxDrawText("%"..hp, 879, 54, 965, 82, tocolor(51, 169, 203, 255), 1.50, "default", "center", "bottom", true, true, false, true, false) dxDrawText("$"..money, 838 - 1, 657 - 1, 1004 - 1, 683 - 1, tocolor(0, 0, 0, 255), 2.00, "default", "left", "top", true, true, false, true, false) dxDrawText("$"..money, 838 + 1, 657 - 1, 1004 + 1, 683 - 1, tocolor(0, 0, 0, 255), 2.00, "default", "left", "top", true, true, false, true, false) dxDrawText("$"..money, 838 - 1, 657 + 1, 1004 - 1, 683 + 1, tocolor(0, 0, 0, 255), 2.00, "default", "left", "top", true, true, false, true, false) dxDrawText("$"..money, 838 + 1, 657 + 1, 1004 + 1, 683 + 1, tocolor(0, 0, 0, 255), 2.00, "default", "left", "top", true, true, false, true, false) dxDrawText("$"..money, 838, 657, 1004, 683, tocolor(37, 225, 28, 255), 2.00, "default", "left", "top", true, true, false, true, false) end addEventHandler("onClientRender",root,dxo) Edited January 27, 2017 by Bssol 1 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