Jump to content

feefex

Member
  • Posts

    7
  • Joined

  • Last visited

Everything posted by feefex

  1. I made a change using rust engines and managed to prevent the upgrade during damage to any entity // Native security check built into the loop if (block != null && block.SecondsSinceAttacked < 30) { BuildingCupboard[cup].work = false; ShowButtonTC(player, cup); CreateGameTip(cup, "Upgrade interrompido: Dano recente detectado!", player, fxnoresources, 10, GameTip.Styles.Error); yield break; } ... the full argument looked like this : private IEnumerator UpdateProgress(BasePlayer player, BuildingPrivlidge cup){ var set = cup.GetBuilding().buildingBlocks; yield return CoroutineEx.waitForSeconds(0.15f); var cd = Frequency(player.UserIDString, config.FrequencyUpgrade); bool show = true; List<ulong> playerTeamMembers = new List<ulong>(); if (config.teamupdate){ var playerTeam = RelationshipManager.ServerInstance.FindPlayersTeam(player.userID); if (playerTeam == null){ playerTeamMembers.Add(player.userID); } else { playerTeamMembers = playerTeam?.members?.ToList() ?? new List<ulong>(); } } for (var index = 0; index < set.Count; index++){ var block = set[index]; // Verificação de segurança nativa: para o processo se o bloco sofreu dano nos últimos 30 segundos if (block != null && block.SecondsSinceAttacked < 30) { BuildingCupboard[cup].work = false; ShowButtonTC(player, cup); CreateGameTip(cup, "Upgrade interrompido: Dano recente detectado!", player, fxnoresources, 10, GameTip.Styles.Error); yield break; } if (cup == null) yield break; if (!BuildingCupboard[cup].work) { show = false; break; } var grade = BuildingCupboard[cup].grade; if (!config.teamupdate || playerTeamMembers.Contains(block.OwnerID)){ if (grade == block.grade) continue; if (!incompatibleFound){ if (Interface.CallHook("OnStructureUpgrade", block, player, grade) != null){ BuildingCupboard[cup].work = false; ShowButtonTC(player, cup); CreateGameTip(cup, Languaje("UpgradeBlock", player.UserIDString), player, fxnoresources, 10, GameTip.Styles.Error); show = false; break; } }
  2. To summarize the context, during a raid it is still possible to upgrade the building, there is no way to disable it... ???
  3. you are fantastic!
  4. All menus have a white background and you cannot read any information. This occurred after force-wipe and plugin

About Us

Codefling is the largest marketplace for plugins, maps, tools, and more, making it easy for customers to discover new content and for creators to monetize their work.

Downloads
2.6m
Total downloads
Customers
11.4k
Customers served
Files Sold
163.6k
Total sales
Payments
3.5m
Processed total
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.