Quote:
Originally Posted by wrecked_
It'll work with any other entity classname. Check it with other classnames. Change the LightClassname[] to light and re-test it. If anyone else knows the classname for a light, feel free to correct me.
|
What you mean ?
PHP Code:
#include <amxmodx>
#include <fakemeta>
// not sure, correct me if i'm wrong
new const light[] = "func_light" or new const LightClassname[][] = "light" Both doesn't work
public plugin_precache()
{
register_forward( FM_Spawn, "SpawnForward" )
}
public SpawnForward( Ent )
{
if( pev_valid( Ent ) )
{
new cname[32]
pev( Ent, pev_classname, cname, 31 )
if( equal( cname, light ) )
{
engfunc( EngFunc_RemoveEntity, Ent )
}
}
}
public plugin_init()
{
register_plugin( "Light Remover", "1.0", "Wrecked" )
}