Raised This Month: $ Target: $400
 0% 

Find player using find_ent_in_sphere


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
hornet
AMX Mod X Plugin Approver
Join Date: Mar 2010
Location: Australia
Old 05-21-2013 , 09:53   Re: Find player using find_ent_in_sphere
Reply With Quote #10

Quote:
Originally Posted by didoWEE View Post
@Connor
Isn't find_ent_by_class better than find_sphere_class?

Edit: Hehe, you missed get_players();
find_sphere_class() is better because it only checks entities in the given radius whereas find_ent_by_class() checks for all entities of that classname.

get_players() is not needed because find_sphere_class() outputs an array of found entities, and returns the number found.
__________________
Quote:
vBulletin Tip #42: Not much would be accomplished by merging this item with itself.
hornet 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 16:19.


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