AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Remove maps hud messages (https://forums.alliedmods.net/showthread.php?t=192630)

portocala 08-12-2012 11:15

Remove maps hud messages
 
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!

Torge 08-12-2012 11:33

Re: Remove maps hud messages
 
You can remove them, you just need to edit the .sma.

portocala 08-12-2012 11:53

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

Thanks!

^SmileY 08-12-2012 12:00

Re: Remove maps hud messages
 
In Maps? Any Screenshot ??

micapat 08-12-2012 12:07

Re: Remove maps hud messages
 
1 Attachment(s)
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;



portocala 08-12-2012 13:27

Re: Remove maps hud messages
 
Thank you very much!


All times are GMT -4. The time now is 05:41.

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