Raised This Month: $ Target: $400
 0% 

find_ent_in_sphere , finding opposite team players index?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 03-03-2017 , 13:27   Re: find_ent_in_sphere , finding opposite team players index?
Reply With Quote #2

PHP Code:
new Float:fOrigin[3], iTeam get_user_team(id), iEnt
entity_get_vector
(idEV_VEC_originfOrigin)

while((
iEnt find_ent_in_sphere(iEntfOrigin300.0)) != 0)
{
    if(
id == iEnt)
        continue
    
    if(
is_user_connected(iEnt))
    {
        if(
iTeam != get_user_team(iEnt))
        {
            
// iEnt is an enemy...
        
}
    }

__________________

Last edited by OciXCrom; 03-03-2017 at 17:22.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
 



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 20:59.


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