How i can create pickup infront of player
#3

Quote:
Originally Posted by colonel-top
Посмотреть сообщение
You could try this stock function
Cr.Forum https://sampforum.blast.hk/showthread.php?tid=344951
Cr.******
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));
}
Thanks
Reply


Messages In This Thread
How i can create pickup infront of player - by SmileyForCheat - 02.04.2016, 05:37
Re: How i can create pickup infront of player - by colonel-top - 02.04.2016, 10:53
Re: How i can create pickup infront of player - by SmileyForCheat - 02.04.2016, 11:30

Forum Jump:


Users browsing this thread: 1 Guest(s)