17.05.2014, 21:19
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.
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;
}
}