private void OnEntityExitColShape(ColShape colshape, GrandTheftMultiplayer.Shared.NetHandle entity)
        {
            if (entity == null)
            {
                return;
            }
            Client player = API.getPlayerFromHandle(entity);

            if (player == null)
            {
                return;
            }
            API.resetEntityData(player, "OnFarmZone");
        }
示例#2
0
        private void API_onPlayerEnterVehicle(Client player, GrandTheftMultiplayer.Shared.NetHandle vehicle, int seat)
        {
            API.shared.consoleOutput($"Player {player.socialClubName} has entered {vehicle} vehicle");

            //var vehIndex = SaleVehicleManager.FindIndex(vehicle);
            //if (vehIndex != -1)
            //{
            //    var veh = db_SaleVehicles.currentSaleVehicleList.Items[vehIndex];

            //    if (veh.Interaction.Rent)
            //        API.sendChatMessageToPlayer(player, $"~b~Bu araç ${veh.Price.Rent} ödeyerek kiralanabilir. ~h~/arac kirala");

            //    if (veh.Interaction.Buy && veh.Price.Buy > 0)
            //        API.sendChatMessageToPlayer(player, $"~b~Bu araç ${veh.Price.Buy} ödeyerek satın alınabilir. ~h~/arac satinal");
            //}
        }