X Y Z in front of player
#3

Try this function.

pawn Код:
GetXYInFrontOfPlayer(playerid, &Float:x, &Float:y, Float:distance)
{
    new Float:a;
    GetPlayerPos(playerid, x, y, a);
    GetPlayerFacingAngle(playerid, a);
    if (GetPlayerVehicleID(playerid))
    {
        GetVehicleZAngle(GetPlayerVehicleID(playerid), a);
    }
    x += (distance * floatsin(-a, degrees));
    y += (distance * floatcos(-a, degrees));
}
I don't know who created this...
Reply


Messages In This Thread
X Y Z in front of player UnFinished - by Opah - 15.12.2013, 11:37
Re: X Y Z in front of player - by BizzyD - 15.12.2013, 11:48
Re: X Y Z in front of player - by arakuta - 15.12.2013, 11:52
Re: X Y Z in front of player - by Opah - 15.12.2013, 11:54
Re: X Y Z in front of player - by newbie scripter - 15.12.2013, 12:01
Re: X Y Z in front of player - by arakuta - 15.12.2013, 12:01
Re: X Y Z in front of player - by Kyle - 15.12.2013, 12:04
Re: X Y Z in front of player - by Opah - 15.12.2013, 12:12
AW: X Y Z in front of player - by Nero_3D - 15.12.2013, 12:44
Re: AW: X Y Z in front of player - by Opah - 15.12.2013, 16:41

Forum Jump:


Users browsing this thread: 3 Guest(s)