Stopping the player from leaving a vehicle?
#3

Maybe this will work .. Add this under public OnPlayerStateChange
pawn Код:
if (newstate == PLAYER_STATE_ONFOOT)
{
if(oldstate == PLAYER_STATE_DRIVER)
{
new veh = GetPlayerVehicleID(playerid);
PutPlayerInVehicle(playerid,veh);
}
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)