Dimmitry007 Posted March 1, 2015 Posted March 1, 2015 Can any one make this dxdrawtext colour green or give me all if dxdrawtext colour code I'm not showing all my script just a part of it so none can steal it. dxDrawText("Admin OnDut", sx-2, sy-232, sx, sy, tocolor(0, 0, 0, 200), fontbig, "default-bold", "center")
Enargy, Posted March 1, 2015 Posted March 1, 2015 dxDrawText("Admin OnDut", sx-2, sy-232, sx, sy, tocolor(0, 255, 0, 200), fontbig, "default-bold", "center")
Dimmitry007 Posted March 1, 2015 Author Posted March 1, 2015 LOL dxdrawtext is not like the colour codes u post
Dealman Posted March 1, 2015 Posted March 1, 2015 It's really simple. If you want to colour the entire string, use the tocolor() attribute of dxDrawText. This attribute has 4 values, Red, Green, Blue and Alpha. They range from a value of 0 to 255. You can also use hex code, IE, if you want 255 green - you would do #00FF00. I'd recommend you use websites such as colorpicker.com. Also, read about dxDrawText, you have a boolean for whether it should accept hex colour-codes in the string or not.
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