Raised This Month: $ Target: $400
 0% 

Remove maps hud messages


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
portocala
Member
Join Date: Jun 2010
Old 08-12-2012 , 11:15   Remove maps hud messages
Reply With Quote #1

Hello,

How can I remove maps hud messages ? There are some white coloured messages showing up by default which praise the author of the map.

Example: "gg_crossfire by Alabala" (random name)

These messages are disturbing, because they interfere with GunGame's hud messages.

Thank you!

Last edited by portocala; 08-12-2012 at 11:17.
portocala is offline
Torge
Veteran Member
Join Date: Oct 2011
Old 08-12-2012 , 11:33   Re: Remove maps hud messages
Reply With Quote #2

You can remove them, you just need to edit the .sma.
Torge is offline
portocala
Member
Join Date: Jun 2010
Old 08-12-2012 , 11:53   Re: Remove maps hud messages
Reply With Quote #3

I'm talking about the hud messages implemented in maps, not in amxx plugins.

Thanks!

Last edited by portocala; 08-12-2012 at 11:53.
portocala is offline
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 08-12-2012 , 12:00   Re: Remove maps hud messages
Reply With Quote #4

In Maps? Any Screenshot ??
__________________
Projects:

- See my Git Hub: https://github.com/SmileYzn
PHP Code:
set_pcvar_num(pCvar, !get_pcvar_num(pCvar)); 
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY
micapat
Veteran Member
Join Date: Feb 2010
Location: Nyuu, nyuu (France).
Old 08-12-2012 , 12:07   Re: Remove maps hud messages
Reply With Quote #5

You need to remove the entity "game_text".

Test this :

PHP Code:
#include < amxmodx >
#include < fakemeta >
#include < engine >

new g_fwSpawn;

public 
plugin_precache( )
{
    
g_fwSpawn register_forwardFM_Spawn"Forward__Spawn" );
}

public 
plugin_init( )
{
    
unregister_forwardFM_Spawng_fwSpawn );
}

public 
Forward__Spawnentity )
{
    if( 
is_valid_ententity ))
    {
        new 
classname32 ];
        
entity_get_stringentityEV_SZ_classnameclassnamecharsmaxclassname ));
        
        if( 
equalclassname"game_text" ))
        {
            
remove_entityentity );
            return 
FMRES_SUPERCEDE;
        }
    }
    
    return 
FMRES_IGNORED;

Attached Files
File Type: sma Get Plugin or Get Source (remove_game_text.sma - 599 views - 578 Bytes)

Last edited by micapat; 08-12-2012 at 12:07.
micapat is offline
portocala
Member
Join Date: Jun 2010
Old 08-12-2012 , 13:27   Re: Remove maps hud messages
Reply With Quote #6

Thank you very much!
portocala 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 05:41.


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