26.10.2009, 13:00
hmm, where should i put this in my gamemode then?
Код:
stock GetXYInfrontOfMe(Float:distance, &Float:x, &Float:y)
{
new Float:z, Float:angle;
GetMyPos(x,y,z);
GetMyFacingAngle(angle);
x += (distance * floatsin(-angle, degrees));
y += (distance * floatcos(-angle, degrees));
}
GetXYInfrontOfMe(AHEAD_OF_CAR_DISTANCE,X,Y);

