Screen origin...
I made a forum for my server some days ago, so I made a little plugin which is supposed to write some info in the top right corner of the players screen.
And if they want to remove it they only have to say /remove... But I need to know what origin to put it to make it show up in the top right corner. Right now I just took the code from a xp plugin which shows it in the down left corner. Heres my plugin: Code:
|
COORDINATES : (1, 2)
hope that helps :) |
So write_coord(1, 2)?
|
Code:
I recommend you try to send this text message, I believe it supports quite a bit more customizing. (May be wrong) Otherwise, you might want to try using a HUDMessage (Take a look at my easyinfo plugin, second page, unapproved) I believe EKS made a plugin to give you the coordinates of a HUD message. |
Cool, thanks.
Now I have this, but dont have any idea of how getting it to the other corner. :shock: Code:
|
Code:
X and Y are 0.0 to 1.0, 0.0 being the left (or top) and 1.0 being the right (or bottom). |
Actually, I liked the position I found in dawg's plugin best, but thanks anyway avalanche :P
Just got another question. Would it be possible to make the background of the text dark? Because sometimes its very hard to read. And I made this cool flash effect so it changes color every second. So it would look better with dark background. |
You can't change the background color of the text, just the color of the letters.
|
Yeh but would it some kind of way be possible to make it dark behind the text?
Like just place a big black square behind it lol. :P |
You can't draw shapes on a client's screen with AMXx. Just use a more readable text color.
|
| All times are GMT -4. The time now is 14:24. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.