Will this work?
#1

pawn Код:
stock GetXYInFrontOfPlayer(playerid, &Float:x, &Float:y, Float:distance)
{   // Created by ******

    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));
}
Will that code work? It doesn't seem to return any value on the code. I havent tested it yet
Reply


Messages In This Thread
Will this work? - by Memoryz - 29.09.2010, 01:21
Re: Will this work? - by Norn - 29.09.2010, 01:26
Re: Will this work? - by Memoryz - 29.09.2010, 01:26
Re: Will this work? - by Norn - 29.09.2010, 01:28
Re: Will this work? - by Grim_ - 29.09.2010, 01:30
Re: Will this work? - by Memoryz - 29.09.2010, 01:33

Forum Jump:


Users browsing this thread: 1 Guest(s)