Code:
if(pev(ent, LASERMINE_OWNER) != id)
{
ColorChat(id, RED, "^4[SkazzY LaserMine] ^1You don't have any lasermines in ^3RADIUS ^1of ^3512 ^1units")
return PLUGIN_HANDLED
}
else
{
PlaySound(ent, STOP_SOUND)
CreateExplosion(ent)
CreateDamage(ent, get_pcvar_float(g_LRDMG), get_pcvar_float(g_LRADIUS))
RemoveEntity(ent)
ColorChat(id, RED, "^4[SkazzY LaserMine] ^1You have succesfully ^3DETONATED ^1your lasermine")
return PLUGIN_HANDLED
}
This means that if you find one entity matching the classname that isn't yours it will return instantly, not even bothering checking any others.
You probably want to remove the "return" inside the if/else statement. Make a counter to see if you got any matches, display messages after the loop is complete, not during. You have got to let the loop finish completely. otherwise it will turn into a lottery.
__________________