Hello, how to to get real bombsite count?
I use this code:
Code:
find_bomb_targets(Float:locations[BOMBSITES][3]) {
new ent, i;
while ( i < g_bombsitenum && (ent = find_ent_by_class(ent,"func_bomb_target") ) || i < g_bombsitenum && (ent = find_ent_by_class(ent,"info_bomb_target") ) ) {
get_brush_entity_origin(ent, locations[i]);
i++;
}
log_to_file("kiki.log", "Founded plants: %d", i);
}
de_dust2: L 11/19/2014 - 16:09:48: Founded plants: 2 - Its good not fake
de_torn L 11/19/2014 - 16:10:02: Founded plants: 4 - This map only have 2 plant A and B plant, how to fix this code? Any ideas?
__________________