Getting Car Angle
#1

Hey I can get car angle GetPlayerFacingAngle doesn't working please help!
Reply
#2

Car coords are like this

pawn Код:
AddStaticVehicle(Floatx,Floaty,Floatz,FloatAngle,Color1,Color2);
Reply
#3

GetVehicleZAngle(vehicleid, Float:rotation);

Edit... vVv

Example:
pawn Код:
if(IsPlayerInAnyVehicle(playerid))
{
  new string[30];
  new Float:rotation;
  new vehicleid = GetPlayerVehicleID(playerid);
  GetVehicleZAngle(vehicleid, rotation);
  format(string, sizeof(string), "Vehicle Rotation = %f", rotation);
  SendClientMessage(playerid, COLOR_BLUE, string);
  return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)