SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 24/02/2015, 11:36 PM   #1
DRIFT_HUNTER
High-roller
 
Join Date: Oct 2009
Posts: 2,070
Reputation: 188
Default Unoccupied vehicle update

Can someone explain how Unoccupied vehicle update works and what is the criteria and rules for player updating certain vehicles? Anything that can help is welcome as im trying to detect some cheats and troll hacks using these.

I did some tests and i think that one criteria is that player must be the closest one to vehicle to update it (but im not sure as test was with only two players), and id like to be completely sure and avoid false positives.
__________________
Looking for someone to start drifting server, drop me a pm if you are interested.


Any PM's that include question about any kind of help will be ignored.
Use appropriate boards for that
DRIFT_HUNTER is offline   Reply With Quote
Old 24/02/2015, 11:39 PM   #2
Abagail
High-roller
 
Join Date: Dec 2013
Location: GetPlayerPos(playerid, pos); Scripter/Mapper.
Posts: 3,140
Reputation: 445
Default Re: Unoccupied vehicle update

Players can update unoccupied vehicles by pushing / moving them, and I guess maybe punching them(which would maybe be unlikely).

I can't seem to find what an unoccupied vehicle actually updates being documented anywhere, so I guess I can't really answer for sure.

As for OnUnoccupiedVehicleUpdate specifically here is what is documented on the wiki:

Quote:

Important
Note
This callback is called very frequently per second per unoccupied vehicle. You should refrain from implementing intensive calculations or intensive file writing/reading operations in this callback.
and

Quote:
Description:
This callback is called when a player updates the position of a vehicle they're not driving. This can happen outside of the vehicle or when the player is a passenger of a vehicle that has no driver.
Abagail 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
[FilterScript] Unoccupied Vehicle Damage[NEW] R0 Filterscripts 18 12/04/2015 08:34 PM
Unoccupied vehicle damage TheSimpleGuy Scripting Help 2 21/06/2014 11:34 AM
[FilterScript] [0.3z] Unoccupied vehicle damage KingHual Filterscripts 49 29/04/2014 04:26 PM
[FilterScript] Anti unoccupied vehicle teleport dusk Filterscripts 1 08/01/2014 09:16 PM
[FilterScript] Vehicle Killer (Unoccupied vehicle damage) KoczkaHUN Filterscripts 28 27/10/2013 04:38 PM


All times are GMT. The time now is 07:27 PM.


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