Ejemplo n.º 1
0
        public static bool Run(ShPlayer shPlayer, float time)
        {
            if (shPlayer.IsDead())
            {
                return(false);
            }
            var jailSpawn = shPlayer.manager.jail.transform;

            shPlayer.svPlayer.SvSetJob(shPlayer.jobs[2], true, false);
            shPlayer.svPlayer.ResetAndSavePosition(jailSpawn.position, jailSpawn.rotation, 0);
            shPlayer.StartCoroutine(shPlayer.svPlayer.JailTimer(time));
            shPlayer.svPlayer.SvClearCrimes();
            shPlayer.RemoveItemsJail();
            shPlayer.svPlayer.Send(SvSendType.Self, Channel.Reliable, ClPacket.ShowTimer, time);
            return(true);
        }