09.06.2012, 09:08
TogglePlayerControllable will freeze the player and stop his vehicle (if he's in one). Seems like you want the whole code, don't you?
Edit:
You also may declare a timer (like 500 ms) after you freeze the player (to stop his vehicle) to unfreeze him, if you want only the vehicle to be stopped.
Second-Edit: or just use https://sampwiki.blast.hk/wiki/SetVehicleVelocity
Edit:
You also may declare a timer (like 500 ms) after you freeze the player (to stop his vehicle) to unfreeze him, if you want only the vehicle to be stopped.
Second-Edit: or just use https://sampwiki.blast.hk/wiki/SetVehicleVelocity