30.07.2015, 10:16
Quote:
I'm not exactly sure how this works, but you might give it a shot: https://sampwiki.blast.hk/wiki/OnTrailerUpdate
|
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;
}