Raised This Month: $ Target: $400
 0% 

stops all hud


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
mAr7obg
Senior Member
Join Date: May 2007
Location: Bulgaria
Old 10-14-2009 , 16:39   stops all hud
Reply With Quote #1

Ъan you do when a player enters the server to its menu that pops asking him if he wants to see hud messages? to have 2 options /
1. HUD to see all messages
2. not to see all messages Hood
mAr7obg is offline
Send a message via Skype™ to mAr7obg
Alucard^
AMXX Moderator: Others
Join Date: Sep 2007
Location: Street
Old 10-15-2009 , 02:34   Re: stops all hud
Reply With Quote #2

Give more description about "HUD Msg"...

You means the radar, armor, health, money, croshair, etc?

Like this plugin:

http://forums.alliedmods.net/showthread.php?t=76947

?
__________________
Approved Plugins - Steam Profile

Public non-terminated projects:
All Admins Menu, HLTV parameters, Subnick,
Second Password (cool style), InfoZone,
Binary C4 plant/defuse, and more...

Private projects:
NoSpec (+menu), NV Surf Management,
PM Adanved System, KZ longjump2, and more...
Alucard^ is offline
Send a message via Skype™ to Alucard^
mAr7obg
Senior Member
Join Date: May 2007
Location: Bulgaria
Old 10-15-2009 , 03:58   Re: stops all hud
Reply With Quote #3

i need to dissable/enable show_hudmessages
mAr7obg is offline
Send a message via Skype™ to mAr7obg
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 10-15-2009 , 04:23   Re: stops all hud
Reply With Quote #4

you could spam you'r hud
Code:
set_task(0.1,"spam")
public spam()
{
set_hudmessage(Xxx
show_hudmessage(0,"       ")
}
__________________
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 10-15-2009 , 12:16   Re: stops all hud
Reply With Quote #5

You can use this, but it won't block HUD messages from other plugins.

Code:
#include < amxmodx > #include < amxmisc > new bool:g_bBlockHUD[ 33 ]; public plugin_init( ) {     register_plugin( "Block HUD Messages", "0.0.1", "Exolent" );     register_message( TE_TEXTMESSAGE, "MessageTextMessage" ); } public MessageTextMessage( iMsgId, iDest, client ) {     return g_bBlockHUD[ client ] ? PLUGIN_HANDLED : PLUGIN_CONTINUE; }
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
mAr7obg
Senior Member
Join Date: May 2007
Location: Bulgaria
Old 10-15-2009 , 12:59   Re: stops all hud
Reply With Quote #6

Quote:
Originally Posted by Exolent[jNr] View Post
You can use this, but it won't block HUD messages from other plugins.

Code:
#include < amxmodx > #include < amxmisc > new bool:g_bBlockHUD[ 33 ]; public plugin_init( ) {     register_plugin( "Block HUD Messages", "0.0.1", "Exolent" );     register_message( TE_TEXTMESSAGE, "MessageTextMessage" ); } public MessageTextMessage( iMsgId, iDest, client ) {     return g_bBlockHUD[ client ] ? PLUGIN_HANDLED : PLUGIN_CONTINUE; }
Thanks , but i search to block from other plugins.Is this possible?
mAr7obg is offline
Send a message via Skype™ to mAr7obg
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 10-15-2009 , 13:04   Re: stops all hud
Reply With Quote #7

I think you would have to use One's method, even though it is very inefficient.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
mAr7obg
Senior Member
Join Date: May 2007
Location: Bulgaria
Old 10-15-2009 , 13:50   Re: stops all hud
Reply With Quote #8

is this only way?
mAr7obg is offline
Send a message via Skype™ to mAr7obg
vitorrd
Senior Member
Join Date: Jul 2009
Old 10-15-2009 , 14:22   Re: stops all hud
Reply With Quote #9

Unless there is a cross-plugin way of doing what Exolent said, yes, it's probably the only way.
vitorrd is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 10-15-2009 , 14:34   Re: stops all hud
Reply With Quote #10

If you could change the code in the amxmodx module for the show_hudmessage function to work like emessage( ) does, then you could hook them with my plugin.
That would be the only way possible with my plugin, unless you wanted to edit all plugins showing hudmessages to use a native from my plugin to check if player had the hud enabled.
The problem with the second way is that you can't use 0 for the index in show_hudmessage. You would have to loop through all players.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:22.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode