Raised This Month: $32 Target: $400
 8% 

find_ent_in_sphere , finding opposite team players index?


Post New Thread Reply   
 
Thread Tools Display Modes
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 03-04-2017 , 04:24   Re: find_ent_in_sphere , finding opposite team players index?
Reply With Quote #11

Quote:
Originally Posted by Kotoamatsukami View Post
My apology
I'm not totally sure about if it's right because I saw in Alka's plugin using ent -1 and != 0 in the while loop.
__________________

Last edited by edon1337; 03-04-2017 at 04:41.
edon1337 is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 03-04-2017 , 07:06   Re: find_ent_in_sphere , finding opposite team players index?
Reply With Quote #12

Quote:
Originally Posted by edon1337 View Post
I'm not totally sure about if it's right because I saw in Alka's plugin using ent -1 and != 0 in the while loop.
It dosent reall matters if its 0 or -1. For finding an ent player its preffered to be a 0 since the players entities starts from 1 and ends at 32

And the findentinsphere returns 0. If nothing is found

Btw its nearly impossible to find a specified ent that u want has the id of 0 because each map has must to have 1 entity. Atless beside the players in the map
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !


Last edited by Natsheh; 03-04-2017 at 07:34.
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 03-04-2017 , 08:05   Re: find_ent_in_sphere , finding opposite team players index?
Reply With Quote #13

PHP Code:
new iPlayers[32], iPnum find_sphere_class(id"player"300.0iPlayerssizeof(iPlayers))

for(new 
iiPlayeriTeam get_user_team(id); iPnumi++)
{
    
iPlayer iPlayers[i]
    
    if(
iTeam != get_user_team(iPlayer))
    {
        
// iPlayer is your worst enemy...
    
}

__________________

Last edited by OciXCrom; 03-04-2017 at 08:09.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Reply



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 17:03.


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