Raised This Month: $ Target: $400
 0% 

plugin only works for ct team when wanted for both


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
vivalavida
Senior Member
Join Date: Jan 2009
Location: Fairfield County, CT
Old 03-15-2009 , 20:14   Re: plugin only works for ct team when wanted for both
Reply With Quote #5

this is what i found

// Taken from chr_engine.inc
stock get_players_distance(const Float:origin2[3],players[32], &num,const flags[]="",index=0,const team[]="")
{
new bool:flag1, bool:flag2
if(containi(flags,"j")!=-1) flag2 = true
if(containi(flags,"i")!=-1)
{
if(!pev_valid(index))
return 0;
flag1 = true
}

static Float:origin[3]
origin[0] = origin2[0]
origin[1] = origin2[1]
origin[2] = origin2[2]

static players2[32]
new num2
arrayset(players2,0,32)
get_players(players2,num2,flags,team)
static Float:origin3[3]
static Float:distance[32]
for(new i=0;i<32;i++) distance[i]=0.0
num = num2

static Float:hit[3]
new bool:continuea=true
for(new i=0;i<num2;i++)
__________________
ew its sticky!

Last edited by vivalavida; 03-15-2009 at 20:14. Reason: stupid smilies
vivalavida 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 09:01.


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