Prevent from jumping out the car.
#1

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
Reply
#2

Try
pawn Код:
PutPlayerInVehicle(playerid,0,GetPlayerVehicleID(playerid));
Reply
#3

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();
Reply
#4

The correct form is:
[pawn]PutPlayerInVehicle(playerid, vehicleid, seat);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)