while( ( iEnt = engfunc( EngFunc_FindEntityByString, iEnt, "classname", "npc_bot" ) ) > 0 ){ if( g_iLastEntCreate[ iEnt ] ) ) remove...... no ideas ...}