PlayerCameraPos
#3

Have you ever heared about
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));
}
Reply


Messages In This Thread
PlayerCameraPos - by Lajko1 - 17.11.2013, 19:22
Re: PlayerCameraPos - by Lajko1 - 17.11.2013, 20:43
Re: PlayerCameraPos - by [D]ry[D]esert - 18.11.2013, 00:11
Re: PlayerCameraPos - by Lajko1 - 18.11.2013, 11:42
Re: PlayerCameraPos - by Lajko1 - 18.11.2013, 16:47
Re: PlayerCameraPos - by Lajko1 - 18.11.2013, 22:55

Forum Jump:


Users browsing this thread: 2 Guest(s)