Certain ents or aspects like func_buyzone and worldspawn are not going to change color.
This script will help identify these areas by ducking and pressing use. Once they are identified one can add markers there if that helps at all.
PHP Code:
/*DUCK and press USE to output ent class*/
#include amxmodx
#include fakemeta
#include engine
#define is_valid_player(%1) (1 <= %1 <= g_MaxPlayers )
#define charsmin -1
new g_MaxPlayers;
public plugin_init()
{
register_touch("","player", "@touch_inquiry")
register_plugin("Ent Inquiry", "A", ".sρiηX҉.");
g_MaxPlayers = get_maxplayers()
}
@touch_inquiry(victim, attacker)
{
if(pev_valid(victim) && pev_valid(attacker))
if(is_valid_player(attacker)/*limits to player only*/ || is_valid_player(victim) )
{
//if duck and use then show...
new Button = pev(attacker,pev_button),OldButton = pev(attacker,pev_oldbuttons);
if(Button & IN_USE && (OldButton & IN_DUCK) && pev(attacker, pev_flags) & FL_ONGROUND)
{
new SzVClassname[MAX_NAME_LENGTH], SzAClassname[MAX_NAME_LENGTH]
if(pev_valid(victim))
pev(victim, pev_classname, SzVClassname, charsmax(SzVClassname));
if(pev_valid(attacker))
pev(attacker, pev_classname, SzAClassname, charsmax(SzAClassname));
if(is_valid_player(attacker))
client_print attacker, print_center, SzVClassname
if(is_valid_player(victim))
client_print victim, print_center, SzAClassname
}
}
}
__________________