Help with write_string
Hallo
I have a problem with the function write_string. For some players the text are in the middle of there screen, and for some in the bottom. What can the problem be? The code: message_begin(MSG_ALL,gmsgStatusText,{0,0,0}) write_byte(0) write_string(final_status) message_end() Sorry for my bad english. |
do u have the rite #includes ?
show us the full plugin on attachment also look at function: http://www.amxmodx.org/funcwiki.php?go=func&id=271 |
aha, gmsgStatusText tells me that you are trying to create a Status Text message.
The position of this is actually determined by the player via the variable hud_centerid. this controls where player target's names are displayed in steam. In CS1.5, there were 2 different IDS that you could use for a Status Text, one for the center of the screen, and one for the bottom left. Steam, however, only has 1 id, and therefore broke many scripts that took advantages of it (ATAC, WAR3MOD, etc). The only way to get your message into the position you want is by forcing a client command, which i highly suggest you do not, only because player's set these values for a reason.. customization. here's the code to do it though, if you feel the need. Code:
Hope this helps :) |
| All times are GMT -4. The time now is 14:39. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.