30.10.2014, 22:44
anyone know what is the problem ?
Код:
GetXYInFrontOfPlayer(playerid, &Float:x, &Float:y, Float:distance) {
new Float:a;
GetPlayerPos(playerid, x, y, a);
GetPlayerFacingAngle(playerid, a);
if (GetPlayerVehicleID(playerid)) {
GetVehicleZAngle(GetPlayerVehicleID(playerid), a);
}
x += (distance * floatsin(-a, degrees));
y += (distance * floatcos(-a, degrees));
}

