28.02.2015, 13:09
pawn Код:
new
Float:fPX, Float:fPY, Float:fPZ,
Float:fVX, Float:fVY, Float:fVZ;
GetPlayerObjectPos(playerid, fPX, fPY, fPZ);
GetPlayerCameraFrontVector(playerid, fVX, fVY, fVZ);
//FORWARD
fPX += floatmul(fVX, fScale);
fPY += floatmul(fVY, fScale);
// I not use this fPZ += floatmul(fVZ, fScale);
//BACK
fPX -= floatmul(fVX, fScale);
fPY -= floatmul(fVY, fScale);
//RIGHT?
//LEFT?