Norhy Posted February 22, 2012 Share Posted February 22, 2012 Please, what is the function for text that appear in the middle of the screen? Link to comment
12p Posted February 22, 2012 Share Posted February 22, 2012 In the middle? There is no function for that, you have to use GUI labels or DirectX text. But if you meant the text in the chat then it's outputChatBox Link to comment
Norhy Posted February 22, 2012 Author Share Posted February 22, 2012 I mean, for example someone kill you and a text will appear in the middle "thePlayer pwned you" or something like that. Link to comment
12p Posted February 22, 2012 Share Posted February 22, 2012 In that case the best method is DX drawing functions. Check the "Drawing functions" section in the Client functions wiki page. You must know that while using DX, the functions just draw what you want each frame. It means you need to achieve the text to be drawn every frame you want. To do that you must add an "onClientRender" event handler. 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