18.02.2015, 11:11
Quote:
Try this perhaps:
pawn Код:
|
pawn Код:
stock GetXYSetAngle(playerid)
{
new Float:x, Float: y, Float:z, Float:fa;
GetPlayerPos(playerid, x, y, z);
GetPlayerFacingAngle(playerid, fa);
// Calculate position to left of player
x = (x + 0.75 * floatsin(-fa + -90,degrees));
y = (y + 0.75 * floatcos(-fa + -90,degrees));
// Calculate create offset
x = (x + 1.0 * floatsin(-fa,degrees));
y = (y + 1.0 * floatcos(-fa,degrees));
}