OnPlayerEnterVehicle Question...
#1

Does
pawn Код:
OnPlayerEnterVehicle(playerid, vehicleid)
work for attaching a trailer? Although the player isnt actually entering the trailer? The 'vehicleid' is connecting to it. Thus "entering" another vehicle.

Is this correct?

Thanks
Ash
Reply
#2

pawn Код:
IsTrailerAttachedToVehicle(vehicleid)
is what you use to check if it is attached
Reply
#3

I know, but can i use it like;
pawn Код:
public IsTrailerAttachedToVehicle(vehicleid)
{

}
?

Thats what im looking for

Thanks
Ash
Reply
#4

what do you want IsTrailerAttachedToVehicle to do??
Reply
#5

Quote:
Originally Posted by selten98
Посмотреть сообщение
what do you want IsTrailerAttachedToVehicle to do??
Something like this: But should i run "IsTrailerAttachedToVehicle" through a timer to check it every "something" seconds.

I want it to do something like this:

pawn Код:
if (IsTrailerAttachedToVehicle(GetPlayerVehicleID(playerid)) == 1)
{
     if (GetVehicleModel(GetVehicleTrailer(GetPlayerVehicleID(playerid))) == 591)
     {
          //Set some checkpoints, send some client text and whatever else.
      }
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)