GetClosestPlayer Bug
#2

I'm assuming you never tried the search bar...

pawn Код:
GetClosestPlayer( toplayer, Float:range )
{
    new Float:tpos[ 3 ], targetid = INVALID_PLAYER_ID;
    GetPlayerPos( toplayer, tpos[ 0 ], tpos[ 1 ], tpos[ 2 ] );
    foreach( Player, i )
    {
        if( IsPlayerInRangeOfPoint( i, range, tpos[ 0 ], tpos[ 1 ], tpos[ 2 ] ) )
            targetid = i;
    }
    return targetid;
}
Reply


Messages In This Thread
GetClosestPlayer Bug - by Stefand - 26.08.2014, 17:54
Re: GetClosestPlayer Bug - by Aerotactics - 26.08.2014, 19:16
Re: GetClosestPlayer Bug - by Pottus - 26.08.2014, 19:26
Re: GetClosestPlayer Bug - by Stefand - 26.08.2014, 21:09
Re: GetClosestPlayer Bug - by Pottus - 26.08.2014, 21:47
Re: GetClosestPlayer Bug - by Stefand - 27.08.2014, 06:01
Re: GetClosestPlayer Bug - by MicroD - 27.08.2014, 07:18

Forum Jump:


Users browsing this thread: 2 Guest(s)