GetXYInFrontOfPlayer error
#2

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
GetXYInFrontOfPlayer error - by AleksandarAdzic - 07.08.2009, 10:12
Re: GetXYInFrontOfPlayer error - by kc - 07.08.2009, 10:18
Re: GetXYInFrontOfPlayer error - by clean180ollie - 07.08.2009, 10:19
Re: GetXYInFrontOfPlayer error - by AleksandarAdzic - 07.08.2009, 10:43

Forum Jump:


Users browsing this thread: 1 Guest(s)