Exemple #1
0
        private static bool Checks(ClientInfo _cInfo)
        {
            EntityPlayer _player = GameManager.Instance.World.Players.dict[_cInfo.entityId];

            if (_player != null)
            {
                Vector3  _position = _player.GetPosition();
                int      x         = (int)_position.x;
                int      y         = (int)_position.y;
                int      z         = (int)_position.z;
                Vector3i _vec3i    = new Vector3i(x, y, z);
                if (Teleportation.VehicleCheck(_cInfo))
                {
                    return(false);
                }
                if (PvP_Check)
                {
                    if (Teleportation.PCheck(_cInfo, _player))
                    {
                        return(false);
                    }
                }
                if (Zombie_Check)
                {
                    if (Teleportation.ZCheck(_cInfo, _player))
                    {
                        return(false);
                    }
                }
            }
            return(true);
        }