Prevent from jumping out 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: Prevent from jumping out the car. (
/showthread.php?tid=75683)
Prevent from jumping out the car. -
Shadow_ - 03.05.2009
is there a way of stoping a player from jumping out of a vehicle?
so a person could do /seatbelt
then they carn't get out untill they doo /unbuckle or somthing
Re: Prevent from jumping out the car. -
MenaceX^ - 03.05.2009
Try
pawn Код:
PutPlayerInVehicle(playerid,0,GetPlayerVehicleID(playerid));
Re: Prevent from jumping out the car. -
HB - 03.05.2009
Quote:
Originally Posted by MenaceX^
Try
pawn Код:
PutPlayerInVehicle(playerid,0,GetPlayerVehicleID(playerid));
|
Yeah, try that at "OnPlayerExitVehicle(playerid,vehicleid);".
Create a array for the player and set it to 1 when using /belt and back to 0 when using /unbelt. Then you check if the player was seatbelted at OnPlayerExitVehicle();
Re: Prevent from jumping out the car. -
FUNExtreme - 03.05.2009
The correct form is:
[pawn]PutPlayerInVehicle(playerid, vehicleid, seat);