Prevent Mounting on vehiclesSolved

Hi,
i am doing a jumping puzzle and used "KeepVehiclesOut" to prevent people from flying into the zone.
But of course they jump off and the vehicle can pass the zone, or people can call their own vehicle inside the zone.

So is it possible to prevent mounting inside a zone? (especially for flying vehicles like mini copter, scrapcopter)?

*bumb*

Hello, same here, players are still able to add cars inside zone, driving in direction of zone and jump out and let the car roll inside, and then they are able to mount this car and drive inside the zone :(

is it possible to add NoMount flag :)

I made very tiny Plugin for that. You will need to insert the zone ID yourself but it works.
Maybe we get such a flag but for now you add me on discord
Toliman#7059

Merged post

Actually you can copy this snippet into any plugin. But you need to manually change the Zone ID.
This snippet will disable ALL mountings in this zone. I guess even chairs or instruments.
Maybe it fits as workaround

[PluginReference] private Plugin ZoneManager;

object CanMountEntity(BasePlayer player, BaseMountable entity)
		{	
			if (ZoneManager != null)
			{
				foreach (string zone in (string[])ZoneManager.Call("GetPlayerZoneIDs", player))
				{
					if (zone == "84347574")
					{
						PrintToChat(player, "Sorry! No Fly Zone :P");
						return false;
					}
				}
			}
			return null;
		}​
Locked automatically