08.09.2018, 19:17
I am trying to create a ABS System for Vehicles like
When i press the buttom Brake(S) less then 3 seconds the car will break normaly
but when i hold the Brake(S) more then 3 seconds the car will use ABS like it will Brake and stop and brake in a fast time but i don't know how to code it. Can someone help?
i know that this section is the right one
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
When i press the buttom Brake(S) less then 3 seconds the car will break normaly
but when i hold the Brake(S) more then 3 seconds the car will use ABS like it will Brake and stop and brake in a fast time but i don't know how to code it. Can someone help?
i know that this section is the right one
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)