-
Posts
8 -
Joined
-
Last visited
Content Type
Profiles
Warranty Claims
Downloads
Forums
Store
Services
Downloads Plus Support
DOWNLOADS EXTRA
Everything posted by 梦幻之旅
-
can you add interface in CanstartFlareRaid(BasePlayer player, string configName) at line 4790 as follows: block = GenerateTargets(privCheck); if (block.Count < 5) { SendReply(player, lang.GetMessage("BaseToSmallYet", this, player.UserIDString)); GetFlareItem(player, configName, 1, false); return false; } //------ if(Interface.CallHook("CanstartFlareRaid", new object[]{player, configName , build}) is string msg) { if(!string.InNullOrEmpty(msg)) { SendReply(player,msg); GetFlareItem(player, configName, 1, false); return false; } } //------
-
Please add code in void OnServerInitialized(bool initial),because it will cause an error during.thanks if(initial == false) { foreach (var player in BasePlayer.activePlayerList) { _playerOptions.Add(player.userID, new PlayerOptions()); ServerMgr.Instance.StartCoroutine(CreateMainUI(player, false)); } } the initialization of the plugin.
-
[ConsoleCommand("gq")] private void GiveQuarryCommandCmd(ConsoleSystem.Arg arg) => GiveQuarryCommand(arg.Player().IPlayer,"gq",arg.Args); private void GiveQuarryCommand(IPlayer iPlayer, string command, string[] args) { BasePlayer targetPlayer = null; if(iPlayer.IsServer || iPlayer.IsAdmin) { if(args.Length == 1) { ulong s64id = 0UL; ulong.TryParse(args[0],out s64id); if(s64id == 0UL) return; targetPlayer = BasePlayer.FindAwakeOrSleepingByID(s64id); if(targetPlayer == null) return; }else{ return; } }else{ var player = iPlayer?.Object as BasePlayer; if (player == null) return; if (!iPlayer.HasPermission("quarrycomputer.give")) { NotifyPlayer(iPlayer, "NoPermission", 1); return; } targetPlayer = player; if (args != null && args.Length > 0) { targetPlayer = BasePlayer.Find(args[0]); if (targetPlayer == null) { NotifyPlayer(iPlayer, "PlayerNotFound", 1); return; } } } if (GetPlayerQuarryCount(targetPlayer.userID) >= GetPlayerQuarryLimit(targetPlayer.IPlayer)) { NotifyPlayer(iPlayer, "QuarryLimitReached", 1); return; } if (GiveQuarryItem(targetPlayer, 1)) { NotifyPlayer(iPlayer, "QuarrySend", 0); NotifyPlayer(targetPlayer, "QuarryReceived", 0); } else { NotifyPlayer(iPlayer, "QuarrySend", 0); NotifyPlayer(targetPlayer, "QuarryReceived", 0); NotifyPlayer(targetPlayer, "QuarryDropped", 1); } } If you will add this code, that would be great,it's make Server ConsoleSystem to run it, for example Shop,Kit an so on.
-
[14:14:34][1][RoadBradley Warning] There is an obstacle "assets/bundled/prefabs/autospawn/decor/riversound/river-sound-emitter.prefab" at "(-345.47, 13.90, -1300.06)" on road "0". [14:14:34][1][RoadBradley Warning] There is an obstacle "assets/bundled/prefabs/autospawn/monument/roadside/radtown_1.prefab" at "(-856.89, 12.28, -1245.27)" on road "0". [14:14:34][1][RoadBradley Warning] There is an obstacle "assets/bundled/prefabs/autospawn/decor/riversound/river-sound-emitter.prefab" on road "0" at coordinates (-1124.22, 24.78, 808.55). [14:14:34][1][RoadBradley Warning] There is an obstacle "assets/bundled/prefabs/autospawn/decor/riversound/river-sound-emitter.prefab" on road "0". [14:14:34] [1][RoadBradley Warning] Road '19_Edited' is too short to generate a tank path! Less than 5 performance points. Cannot be used. [14:14:34][1][RoadBradley Warning] Road '38_Edited' is too short to generate a tank path! Less than 5 performance points. Unable to use . The situation is like this: the red team is coming back, and the team is moving and adding, how can you solve it? But the red town is located on the main road(Road_0), the tank will not be Spawn if set Remove Roads With Obstacles From Pool is ture, I found there are 3 or 4 CheckPoints under the obstacle,how to delete this points in Road_0 , or how to prevent CheckPoints spawn. The tank going to CheckPoints592 when it bypasses obstacles, tank was stick.
-
[14:14:34][1][RoadBradley WARNING] There is an obstacle 'assets/bundled/prefabs/autospawn/decor/riversound/river-sound-emitter.prefab' on the road '0' at '(-345.47, 13.90, -1300.06)'. [14:14:34][1][RoadBradley WARNING] There is an obstacle 'assets/bundled/prefabs/autospawn/monument/roadside/radtown_1.prefab' on the road '0' at '(-856.89, 12.28, -1245.27)'. [14:14:34][1][RoadBradley WARNING] There is an obstacle 'assets/bundled/prefabs/autospawn/decor/riversound/river-sound-emitter.prefab' on the road '0' at '(-1124.22, 24.78, 808.55)'. [14:14:34][1][RoadBradley WARNING] There is an obstacle 'assets/bundled/prefabs/autospawn/decor/riversound/river-sound-emitter.prefab' on the road '0' at '(-1133.66, 24.71, 805.25)'. [14:14:34][1][RoadBradley WARNING] Route '19_Edited' is too small for a bradley! It have less than 5 checkpoints. Cannot be used. [14:14:34][1][RoadBradley WARNING] Route '38_Edited' is too small for a bradley! It have less than 5 checkpoints. Cannot be used. The tank cannot move when it arrive exit of red town,how to fix it ?