08.07.2012, 16:59
Hello Community,
im searching for an Solution:
How can i Create a Object behind a Dune ?
So its wayne if i stay to North or S ?
I tryed it abit but failed
can someone help me ?
It's for a Lazeret Script
im searching for an Solution:
How can i Create a Object behind a Dune ?
So its wayne if i stay to North or S ?
I tryed it abit but failed
can someone help me ?
It's for a Lazeret Script
pawn Код:
stock CreateLazeret(playerid, Float:vehiclelength)
{
new Float:x,Float:y,Float:z,Float:a;
new vID = GetPlayerVehicleID(playerid);
GetVehiclePos(vID, x, y, z);
GetPlayerFacingAngle(vID, a);
x += (vehiclelength* floatsin(-a, degrees));
y += (vehiclelength* floatcos(-a, degrees));
Object = CreateDynamicObject(1997, x, y-5.5, z-2.20, 0.0, 0.0, a, 0, 0);
//return IsPlayerInRangeOfPoint(playerid,radius,x,y,z);
return 1;
}