Locked inside the car
#1

Is the a way to stop people Exiting their cars?
Reply
#2

Freeze them
Reply
#3

You mean a function like SetVehicleParams?
Reply
#4

Quote:
Originally Posted by Weed_
Freeze them
They cant move anymore^^

Go in your GM to: OnPlayerExitVehicle
Romve the whol function and paste this:

Код:
public OnPlayerExitVehicle(playerid, vehicleid)
{
  new vehicle;
  vehicle = GetPlayerVehicleID(playerid);
  PutPlayerInVehicle(playerid, vehicle, 0);
	return 1;
}
Reply
#5

Quote:
Originally Posted by Oxside
Quote:
Originally Posted by Weed_
Freeze them
They cant move anymore^^

Go in your GM to: OnPlayerExitVehicle
Romve the whol function and paste this:

Код:
public OnPlayerExitVehicle(playerid, vehicleid)
{
  new vehicle;
  vehicle = GetPlayerVehicleID(playerid);
  PutPlayerInVehicle(playerid, vehicle, 0);
	return 1;
}
He didn't say he wanted them to move :/
Reply
#6

I want them to move. I didnt ask how to freeze. I want them to be stuck inside the car and cannot exit.
Reply
#7

Use OxSide's code
Reply
#8

Quote:
Originally Posted by Oxside
Quote:
Originally Posted by Weed_
Freeze them
They cant move anymore^^

Go in your GM to: OnPlayerExitVehicle
Romve the whol function and paste this:

Код:
public OnPlayerExitVehicle(playerid, vehicleid)
{
  new vehicle;
  vehicle = GetPlayerVehicleID(playerid);
  PutPlayerInVehicle(playerid, vehicle, 0);
	return 1;
}
Nothing checks here if the vehicle is locked.
Reply
#9

There he didn't ask for........
He only ask for that a player cant exit vehicle!
Reply
#10

Quote:
Originally Posted by Oxside
There he didn't ask for........
He only ask for that a player cant exit vehicle!
Oh, my bad, I thought he means when someone tries to exit the car while it's locked.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)