Arrest command problems
#2

Код:
stock PlayerToPlayer(playerid,targetid,Float:distance)
{
    new Float:x, Float:y, Float:z;
    GetPlayerPos(playerid,x,y,z);
    if(IsPlayerInRangeOfPoint(targetid,distance,x,y,z))
    {
        return true;
    }
    return false;
}
Use this stock. I can't remember who created it but this will help you a lot quicker.

So it'd be:
pawn Код:
if(PlayerToPlayer(playerid, id, 8.0)
{
// Code here
}
Reply


Messages In This Thread
Arrest command problems - by DarkLored - 16.03.2014, 00:20
Re: Arrest command problems - by Zeppo - 16.03.2014, 00:24
AW: Arrest command problems - by Macronix - 16.03.2014, 00:24
Re: Arrest command problems - by CuervO - 16.03.2014, 00:28
Re: Arrest command problems - by DarkLored - 16.03.2014, 00:38
AW: Arrest command problems - by Macronix - 16.03.2014, 00:47
Re: Arrest command problems - by DarkLored - 16.03.2014, 01:50
Re: Arrest command problems - by CuervO - 16.03.2014, 02:30
Re: Arrest command problems - by DarkLored - 16.03.2014, 02:59
Re: Arrest command problems - by CuervO - 16.03.2014, 03:03

Forum Jump:


Users browsing this thread: 4 Guest(s)