Car reversing to checkpoint
#1

Hey!

I discussing for driving license how can detect player reversing vehicle to checkpoint.
I know how use GetVehicleZAngle and angle must be 270 +- 5.


pawn Код:
#define Carrangle 270

public OnPlayerEnterRaceCheckpoint(playerid)
{
new Float:carangle
GetVehicleZAngle(vehicleid, carangle);
  {
  if(CarAngle > 265 & CarAngle < 275)
  Show_NextCP;
  }
  {
  else
  DisablePlayerCheckpoint;
  return 1;
  }
}
Reply
#2

I don't get where your confused if you say you know how to detect it with angles... Wheres the issue here?
Reply
#3

I confused how make algoritm do detect vehicle rotation in checkpoint. I need little extra help for this. I know but my pawno skill are not good enough.

GetVehicleZAngle is stock that check vehicle rotation in checkpoint or ay location where you vehicle
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)