03.03.2011, 00:30
Have a timer running for every player that checks if the trailer is still connected to your vehicle.
First store the vehicleid of the attached trailer somewhere.
Then start a timer which runs every second and let that timer check if vehicleid of the attached trailer is still the same as you stored before.
If it's the same, do nothing.
If it's not the same, cancel the checkpoint (and perhaps kill the timer).
First store the vehicleid of the attached trailer somewhere.
Then start a timer which runs every second and let that timer check if vehicleid of the attached trailer is still the same as you stored before.
If it's the same, do nothing.
If it's not the same, cancel the checkpoint (and perhaps kill the timer).