Raised This Month: $ Target: $400
 0% 

Real bombsites count


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
kiki33hun
Veteran Member
Join Date: Jul 2011
Location: Magyarország
Old 11-19-2014 , 10:22   Real bombsites count
Reply With Quote #1

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?
__________________
kiki33hun is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:57.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode