27.02.2011, 15:31
GetPlayerCameraFrontVector_Ex
Modified to samp verzion.pawn Код:
stock // radius aka distance
GetPlayerCameraFrontVector_Ex(Float:radius, Float:Phi, Float:Lambda, &Float:x, &Float:y, &Float:z) // Thanks ****** Decartes trigonometria
{
x = radius * floatcos(-Phi, degrees) * floatsin(-Lambda, degrees);
y = radius * floatcos(-Phi, degrees) * floatcos(-Lambda, degrees);
z = radius * floatsin(-Phi, degrees);
}