Stop player exiting a Vehicle - 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)
+--- Thread: Stop player exiting a Vehicle (
/showthread.php?tid=297020)
Stop player exiting a Vehicle -
sNaq - 14.11.2011
Hey,
is it possible to stop a player from exiting a vehicle ? I tried to freeze the player a short time, but this doesnt work.
any suggestions ?
Re: Stop player exiting a Vehicle -
Pharrel - 14.11.2011
pawn Код:
public OnPlayerExitVehicle(playerid, vehicleid)
{
if(SeatBelt[playerid])
{
GetPlayerPos(playerid, pX, pY, pZ);
new seat = GetPlayerVehicleSeat(playerid);
SetPlayerPos(playerid, pX, pY, pZ);
PutPlayerInVehicle(playerid, vehicleid, seat);
return 0;
}
return 1;
}
i use this way for seat belt
AW: Stop player exiting a Vehicle -
sNaq - 14.11.2011
works really well, thx man