SA-MP Forums Archive
Locked inside the car - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Locked inside the car (/showthread.php?tid=70615)



Locked inside the car - T1CKLE - 26.03.2009

Is the a way to stop people Exiting their cars?


Re: Locked inside the car - Weed_ - 26.03.2009

Freeze them


Re: Locked inside the car - MenaceX^ - 26.03.2009

You mean a function like SetVehicleParams?


Re: Locked inside the car - Oxside - 26.03.2009

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;
}



Re: Locked inside the car - Weed_ - 26.03.2009

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 :/


Re: Locked inside the car - T1CKLE - 26.03.2009

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


Re: Locked inside the car - Weed_ - 26.03.2009

Use OxSide's code


Re: Locked inside the car - MenaceX^ - 26.03.2009

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.


Re: Locked inside the car - Oxside - 26.03.2009

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


Re: Locked inside the car - MenaceX^ - 26.03.2009

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.