28.02.2015, 13:22
Just so there is no confusion here is Nero_3D's function to get the camera facing angle.
pawn Код:
Float: GetPlayerCameraFacingAngle(playerid)
{
new Float: vX, Float: vY;
if(GetPlayerCameraFrontVector(playerid, vX, vY, Float: playerid))
{
if((vX = -atan2(vX, vY)) < 0.0) return vX + 360.0;
return vX;
}
return 0.0;
}