SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 30/05/2013, 01:06 AM   #1
Tanush123
High-roller
 
Tanush123's Avatar
 
Join Date: Aug 2011
Posts: 1,022
Reputation: 65
Default Vehicle Pushing

is it possible to disallow others to push vehicles by sprinting
Tanush123 is offline   Reply With Quote
Old 30/05/2013, 05:40 AM   #2
Lorenc_
High-roller
 
Lorenc_'s Avatar
 
Join Date: Jan 2010
Location: Australia
Posts: 3,793
Reputation: 1179
Default Re: Vehicle Pushing

When you push a vehicle, usually OnUnoccupiedVehicleUpdate is called. Though it certainly would require a lot of work just to disallow this.

It is possible, yes.
__________________
Join the best Cops And Robbers in SA-MP, today. svr.sfcnr.com:7777

Lorenc_ is offline   Reply With Quote
Old 30/05/2013, 10:32 PM   #3
Tanush123
High-roller
 
Tanush123's Avatar
 
Join Date: Aug 2011
Posts: 1,022
Reputation: 65
Default Re: Vehicle Pushing

Thanks
Tanush123 is offline   Reply With Quote
Old 30/05/2013, 10:36 PM   #4
Pottus
High-roller
 
Pottus's Avatar
 
Join Date: Jun 2012
Posts: 4,885
Reputation: 1337
Default Re: Vehicle Pushing

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.
Pottus is offline   Reply With Quote
Old 30/05/2013, 10:37 PM   #5
DobbysGamertag
Gangsta
 
DobbysGamertag's Avatar
 
Join Date: Jan 2013
Location: England
Posts: 807
Reputation: 100
Default Re: Vehicle Pushing

I thought just detecting if a players near a vehicle thats unoccupied, and clearing animations would work :S i could be wrong
__________________

Releases:
[include] SAMP Dynamic Zones - An up to date a_zones.inc
DobbysGamertag is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Angle Issues: Setting a attached object on a vehicle to face a vehicle Kar Scripting Help 2 11/07/2012 12:37 AM
SetTimerEx pushing wrong values? Kar Scripting Help 13 07/03/2012 11:53 PM
Pushing elements in multidimensional arrays Thomas. Scripting Help 1 24/12/2011 02:55 PM
People pushing cars Osviux Bug Reports 10 05/01/2011 11:44 AM
Players pushing empty vehicles Osviux Help Archive 0 04/01/2011 08:40 PM


All times are GMT. The time now is 04:53 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.