Pickup opposite me
#2

I think you're looking for this function.
pawn Код:
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));
}
Reply


Messages In This Thread
Pickup opposite me - by IceTea15 - 31.08.2010, 09:43
Re: Pickup opposite me - by Grim_ - 31.08.2010, 09:47
Re: Pickup opposite me - by Voldemort - 31.08.2010, 09:57
Re: Pickup opposite me - by [XST]O_x - 31.08.2010, 10:08
Re: Pickup opposite me - by IceTea15 - 31.08.2010, 12:39

Forum Jump:


Users browsing this thread: 1 Guest(s)