Пример #1
0
        private bool ValitedateRaidAndCombat(UnturnedPlayer player)
        {
            TeleportationPlugin teleportation = pluginInstance.TeleportationPlugin as TeleportationPlugin;

            if (teleportation.IsPlayerInCombat(player.CSteamID))
            {
                UnturnedChat.Say(player, pluginInstance.Translate("WhileCombat"), pluginInstance.MessageColor);
                return(false);
            }

            if (teleportation.IsPlayerInRaid(player.CSteamID))
            {
                UnturnedChat.Say(player, pluginInstance.Translate("WhileRaid"), pluginInstance.MessageColor);
                return(false);
            }
            return(true);
        }