Track when a vehicle connects to a trailer.
#4

Quote:
Originally Posted by Vince
Посмотреть сообщение
I'm not exactly sure how this works, but you might give it a shot: https://sampwiki.blast.hk/wiki/OnTrailerUpdate
That will indeed work however it will spam countlessly because it reacts similarly to OnPlayerUpdate.

I would use the callback Vince suggested and probably write instructions as such:

pawn Код:
new
    p_TrailerConnected[ MAX_PLAYERS ];

public OnTrailerUpdate( playerid, vehicleid )
{
    if( p_TrailerConnected[ playerid ] != vehicleid ) {
        // connected, write code here
        p_TrailerConnected[ playerid ] = vehicleid;
    }
    return 1;
}
Reply


Messages In This Thread
Track when a vehicle connects to a trailer. - by Rokzlive - 30.07.2015, 08:30
Re: Track when a vehicle connects to a trailer. - by Roberto80 - 30.07.2015, 08:40
Re: Track when a vehicle connects to a trailer. - by Vince - 30.07.2015, 09:35
Re: Track when a vehicle connects to a trailer. - by Lorenc_ - 30.07.2015, 10:16
AW: Track when a vehicle connects to a trailer. - by Kaliber - 30.07.2015, 11:00

Forum Jump:


Users browsing this thread: 1 Guest(s)