PDA

View Full Version : Vehicle Pushing


Tanush123
30/05/2013, 01:06 AM
is it possible to disallow others to push vehicles by sprinting

Lorenc_
30/05/2013, 05:40 AM
When you push a vehicle, usually OnUnoccupiedVehicleUpdate (http://wiki.sa-mp.com/wiki/OnUnoccupiedVehicleUpdate) is called. Though it certainly would require a lot of work just to disallow this.

It is possible, yes.

Tanush123
30/05/2013, 10:32 PM
Thanks

Pottus
30/05/2013, 10:36 PM
Actually it should be pretty easy to do if you keep a record of the vehicle position you can keep setting it back to that position when OnUnoccupiedVehicleUpdate() not sure how it will look however.

DobbysGamertag
30/05/2013, 10:37 PM
I thought just detecting if a players near a vehicle thats unoccupied, and clearing animations would work :S i could be wrong