16.10.2016, 18:09
PHP код:
stock Float:GetPlayerAimingPoint(playerid, Float:Angle)
{
new Float:X, Float:Y, Float:Z; //Float:Angle;
GetPlayerPos(playerid, X, Y, Z);
GetPlayerFacingAngle(playerid, Angle);
X += (5 * floatsin(-Angle, degrees));
Y += (5 * floatcos(-Angle, degrees));
return Angle;
}