plugin only works for ct team when wanted for both
hey guys im having trouble with a code, it only gives the plugin to someone on the ct team, when i want it on the t team as well. heres a snip
get_players_distance(origin,players,num,"aeij ",id,"CT") } else { get_players_distance(origin,players,num,"aeij ",id,"TERRORIST") } if(num) |
Re: plugin only works for ct team when wanted for both
get_players_distance is a stock?
|
Re: plugin only works for ct team when wanted for both
i have completely no idea lol. i had the plugin custom made and they guy who made it hasnt been online so i have no way of contacting him.
|
Re: plugin only works for ct team when wanted for both
Try
PHP Code:
Quote:
Code:
get_players_distance(const Float:origin[3],players[32], &num,flags[]="",index=0,team[]="") |
Re: plugin only works for ct team when wanted for both
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++) |
| All times are GMT -4. The time now is 09:01. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.