Leaving car while at tuning garage
#1

Dear Scripters,

I have a problem. Sometimes when I drive in a tuning garage and want to tune my car the player left the car. If the menu getting closed and the player leave the car, the car gets teleported to the tuning garage interior and the player is then alone in the tuning garage.
How can I block it that the player leave the car?

Kind Regards,
Manuel1948
Reply
#2

pawn Код:
pubilc OnPlayerExitVehicle(playerid, vehicleid)
{
  if(IsInTuningGarage[playerid]) // Find some way to detect if they are in the garage. You can get their coords and compare them
  {
   PutPlayerInVehicle(playerid, vehicleid, 0);
  }
  return 1;
}
Reply
#3

Thanks!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)