Replacing Name Showing
What I'm trying to do is replace the default name-showing when you look at a player, to a custom one that show a hud message.
Code:
new gHudSyncObj;Also, it doesn't block the message in the bottom-left corner of the screen. Does anyone have a different/better way to do this? |
Re: Replacing Name Showing
With the "StatusValue" message I think there is an argument that is set to 1 when you are looking at them, then it sends another message that sets the argument to 0 (I THINK!!! It's been awhile since I've used StatusValue).
If I am correct in the above then you can set a task to keep the hud message up until the argument is 0. Also, the reason it's not blocking the message is because you can't block using register_event. You will need to use register_message. |
Re: Replacing Name Showing
heres a diff variation that i came up with after i read your post
Code:
#include <amxmodx> |
Re: Replacing Name Showing
This will display the players name and health you are looking at. Just add your team checks and whatever else to it that you had.
PHP Code:
|
Re: Replacing Name Showing
Shouldn't you block StatusText message instead ?
|
Re: Replacing Name Showing
I think that's the command I was thinking of at first when I saw this thread. I didn't even try StatusText because I saw StatusValue in X-olents code and just used that. The code I posted still works though :P
Edit: Since StatusValue is the one that get's all of the information needed it is best to use it like we did. By blocking the StatusValue and it working there would be no need to block StatusText since it doesn't show up anyhow. |
Re: Replacing Name Showing
thanks hlstriker :up:
|
| All times are GMT -4. The time now is 11:03. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.