createobject where the camera is
#3

Quote:
Originally Posted by Georgelopez1
Посмотреть сообщение
Just Download MTA, remember where you /save for the spawn location, and put the object there.
Is that what he asked for? No.

Here pal, maybe this can help you:

pawn Код:
stock Float:GetPosInFrontOfPlayer(playerid, &Float:x, &Float:y, Float:distance)
{
    new Float:a;
    GetPlayerPos(playerid, x, y, a);
    if (IsPlayerInAnyVehicle(playerid)) GetVehicleZAngle(GetPlayerVehicleID(playerid), a);
    else GetPlayerFacingAngle(playerid, a);
    x += (distance * floatsin(-a, degrees));
    y += (distance * floatcos(-a, degrees));
    return a;
}
It gets you a location in front of the player(the way he is facing)
Reply


Messages In This Thread
createobject where the camera is - by thomas.. - 03.10.2010, 18:35
Re: createobject where the camera is - by Georgelopez1 - 03.10.2010, 20:00
Re: createobject where the camera is - by CrucixTM - 03.10.2010, 20:57
Re: createobject where the camera is - by thomas.. - 03.10.2010, 21:22

Forum Jump:


Users browsing this thread: 1 Guest(s)