Raised This Month: $51 Target: $400
 12% 

remove messag on radar


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Administrator
Member
Join Date: Jun 2014
Old 08-20-2014 , 07:28   remove messag on radar
Reply With Quote #1

Hi
How to remove all the points on the radar?
Administrator is offline
NiHiLaNTh
Way Past Expiration
Join Date: May 2009
Location: Latvia
Old 08-20-2014 , 07:38   Re: remove messag on radar
Reply With Quote #2

look here for all messages. In theory you have to hook Radar, HostageK, HostagePos, BombDrop, BombPickup and probably some other messages and block them by returning PLUGIN_HANDLED. But it depends on what you need to do.
__________________

NiHiLaNTh is offline
Send a message via Skype™ to NiHiLaNTh
Administrator
Member
Join Date: Jun 2014
Old 08-20-2014 , 07:54   Re: remove messag on radar
Reply With Quote #3

I need to block teamates on radart
Administrator is offline
NiHiLaNTh
Way Past Expiration
Join Date: May 2009
Location: Latvia
Old 08-20-2014 , 08:23   Re: remove messag on radar
Reply With Quote #4

Then hook Radar message and block it.
__________________

NiHiLaNTh is offline
Send a message via Skype™ to NiHiLaNTh
Administrator
Member
Join Date: Jun 2014
Old 08-20-2014 , 08:25   Re: remove messag on radar
Reply With Quote #5

how to do it?
Administrator is offline
NiHiLaNTh
Way Past Expiration
Join Date: May 2009
Location: Latvia
Old 08-20-2014 , 08:45   Re: remove messag on radar
Reply With Quote #6

Code:
public plugin_init()
{
      register_message(get_user_msgid("Radar"), "MESSAGE_Radar");
}

...

public MESSAGE_Radar()
{
       return PLUGIN_HANDLED;
}
__________________

NiHiLaNTh is offline
Send a message via Skype™ to NiHiLaNTh
plazma
Senior Member
Join Date: Oct 2013
Old 08-20-2014 , 15:42   Re: remove messag on radar
Reply With Quote #7

NiHiLaNTh can u help me to block this huds when I buy weapons or grenades?

__________________
Free Palestine ♥

Last edited by plazma; 08-20-2014 at 15:42.
plazma is offline
NiHiLaNTh
Way Past Expiration
Join Date: May 2009
Location: Latvia
Old 08-20-2014 , 15:53   Re: remove messag on radar
Reply With Quote #8

block WeapPickup and AmmoPickup messages. Dont ask me how, I already have shown the example. And next time, create another thread for that.
__________________

NiHiLaNTh is offline
Send a message via Skype™ to NiHiLaNTh
alan_el_more
Veteran Member
Join Date: Jul 2008
Location: amxmodx-es.com
Old 08-20-2014 , 16:03   Re: remove messag on radar
Reply With Quote #9

Radar, ammo and weapon

PHP Code:
public plugin_init()
{
     
set_msg_block(get_user_msgid("Radar"), BLOCK_SET)
     
set_msg_block(get_user_msgid("WeapPickup"), BLOCK_SET)
     
set_msg_block(get_user_msgid("AmmoPickup"), BLOCK_SET)

__________________

Last edited by alan_el_more; 08-20-2014 at 16:06.
alan_el_more 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 16:48.


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