How to remove HUD
How to Remove Hud Message using /say command?
|
Re: How to remove HUD
What hudmessage?
|
Re: How to remove HUD
PHP Code:
forget this: case 1: register_concmd(cross,"cross_crosshair") case 2: register_concmd(cross,"dot_crosshair") case 3: register_concmd(cross,"round_crosshair") it's slow hack part |
Re: How to remove HUD
Don't use "bind", that's slowhacking.
Use only 1 entity with only 1 think and make a variable for the crosshair symbol... |
Re: How to remove HUD
okay.. how? can i hook it like this? http://forums.alliedmods.net/showthr...ght=remove+hud
|
Re: How to remove HUD
1 Attachment(s)
Make a global variable like:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
So here is how does it works: We set the "info" of the crosshair menu options as numbers 43, 42, 111. These numbers are actually character indexes that represent a character. In our case these are the indexes of the crosshair HUD characters - "+", "*" and "o". When we select an option, the menu passes the "info" parameter of menu_additem to the "data" string in the menu handler. So, now we can set the selected character to the "user_crosshair_type" variable to store the user HUD crosshair character. Then when we display the HUD message, we use "%c", which gets a character index and transfers it to a character. We get that index from our user_crosshair_type variable, so every player will see his own selected HUD crosshair. On client connect we set the default HUD character for the player - that's 111 or the "o" character. Here I made a simple program that displays the character ID by given character. I also attached the source code (compiled with DEV C++), ready to use .exe file is in the bin folder. (That's not a virus, lol) |
Re: How to remove HUD
wew.. thank you so much dude :D btw, what is cid? I'll try the code tomorrow, :)
|
Re: How to remove HUD
I got 2 Warnings notice when compiled it
|
Re: How to remove HUD
Quote:
|
Re: How to remove HUD
Quote:
|
| All times are GMT -4. The time now is 00:28. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.