20.12.2011, 11:01
I tried to make a video for you, but you know what, the script fails, because:
I suggest you to do this:
- For an example I used Flatbed. Turned up Fraps, started filming how I slowly reverse into a gate, but for the horn to look realistic and not glitchy I had to hold reverse button all the time, which resulted in a crash.
- Horn goes off when you use breaks to stop.
I suggest you to do this:
- After flagging the player that he\'s holding down reverse key, start checking him in OnPlayerUpdate whether he\'s still reversing or not (check speed!).
- If he is, call SetVehicleParamsEx and set alarm to 1 (I think there\'s no need to check whether its already enabled or not, just set it). If he\'s not, set alarm to 0 and remove the key flag.
- Do NOT remove the key flag after the player released the key. It\'s being done in OPD.