Ejemplo n.º 1
0
        bool?CanUseDoor(BasePlayer player, BaseLock door)
        {
            Puts("CanUseDoor works!");
            Puts("BaseLock is " + door.GetInstanceID().ToString());
            if (door.GetInstanceID().Equals(-267990) || door.GetInstanceID().Equals(-267932))
            {
                Puts("is blue team keylock");
                return(true);
            }

            if (door.GetInstanceID().Equals(-268258) || door.GetInstanceID().Equals(-268200))
            {
                Puts("is red team keylock");
                return(true);
            }

            return(null);
        }