Jump to content

梦幻之旅

Member
  • Posts

    7
  • Joined

  • Last visited

Everything posted by 梦幻之旅

  1. 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.
  2. [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.
  3. Please not use ttf font, as "Font = "DroidSansMono.ttf",",Because it will cause the Chinese to not work,and please add "ItemManager.CreateByName(BaseItemName, 1, QuarrySkinId); item.name = "态业油机"; " in config file.
  4. [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.
  5. [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 ?
2m

Downloads

Total number of downloads.

9.6k

Customers

Total customers served.

139.2k

Files Sold

Total number of files sold.

2.9m

Payments Processed

Total payments processed.

×
×
  • 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.